diff --git a/plugins/building-hacks.cpp b/plugins/building-hacks.cpp index 2c3fbecc00..0abdcd80e3 100644 --- a/plugins/building-hacks.cpp +++ b/plugins/building-hacks.cpp @@ -602,7 +602,7 @@ static void enable_hooks(bool enable) INTERPOSE_HOOK(work_hook,getPowerInfo).apply(enable); INTERPOSE_HOOK(work_hook,getMachineInfo).apply(enable); INTERPOSE_HOOK(work_hook,isPowerSource).apply(enable); - + INTERPOSE_HOOK(work_hook,canConnectToMachine).apply(enable); INTERPOSE_HOOK(work_hook,isUnpowered).apply(enable); INTERPOSE_HOOK(work_hook,canBeRoomSubset).apply(enable); diff --git a/plugins/lua/building-hacks.lua b/plugins/lua/building-hacks.lua index 860bcea7c2..72707bee4f 100644 --- a/plugins/lua/building-hacks.lua +++ b/plugins/lua/building-hacks.lua @@ -40,7 +40,7 @@ local function onUpdateLocal(workshop) end end local function findCustomWorkshop(name_or_id) - if type(name_or_id)="string" then + if type(name_or_id) == "string" then local raws=df.global.world.raws.buildings.all for k,v in ipairs(raws) do if v.code==name_or_id then @@ -53,7 +53,6 @@ local function findCustomWorkshop(name_or_id) else error("Expected string or integer id for workshop definition") end - end local function registerUpdateAction(shopId,callback) _registeredStuff[shopId]=callback