Move configuration to in-game settings

This commit is contained in:
2025-04-29 10:14:20 +02:00
parent 63960f3de1
commit 9b57098fca
17 changed files with 36 additions and 28 deletions

View File

@@ -73,7 +73,7 @@ end
function industrialtest.Machine.trigger(self,pos)
local timer=minetest.get_node_timer(pos)
if not timer:is_started() then
timer:start(industrialtest.updateDelay)
timer:start(industrialtest.config.updateDelay)
end
end
@@ -259,7 +259,7 @@ function industrialtest.Machine.createDefinitionTable(self)
return inv, "src", mcl_util.select_stack(hop_inv, hop_list, inv, "src")
end
def._mcl_hoppers_on_after_push=function(pos)
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
self:triggerIfNeeded(pos)
end
end