Skip to content

Commit 313469b

Browse files
committed
fix lua syntax error and whitespaces
1 parent 9c9e81d commit 313469b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugins/building-hacks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static void enable_hooks(bool enable)
602602
INTERPOSE_HOOK(work_hook,getPowerInfo).apply(enable);
603603
INTERPOSE_HOOK(work_hook,getMachineInfo).apply(enable);
604604
INTERPOSE_HOOK(work_hook,isPowerSource).apply(enable);
605-
605+
606606
INTERPOSE_HOOK(work_hook,canConnectToMachine).apply(enable);
607607
INTERPOSE_HOOK(work_hook,isUnpowered).apply(enable);
608608
INTERPOSE_HOOK(work_hook,canBeRoomSubset).apply(enable);

plugins/lua/building-hacks.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ local function onUpdateLocal(workshop)
4040
end
4141
end
4242
local function findCustomWorkshop(name_or_id)
43-
if type(name_or_id)="string" then
43+
if type(name_or_id) == "string" then
4444
local raws=df.global.world.raws.buildings.all
4545
for k,v in ipairs(raws) do
4646
if v.code==name_or_id then
@@ -53,7 +53,6 @@ local function findCustomWorkshop(name_or_id)
5353
else
5454
error("Expected string or integer id for workshop definition")
5555
end
56-
5756
end
5857
local function registerUpdateAction(shopId,callback)
5958
_registeredStuff[shopId]=callback

0 commit comments

Comments
 (0)