Some various fixes and changes in machine.lua and electric_machine.lua

This commit is contained in:
2025-03-31 11:54:47 +02:00
parent 38b08bcb0d
commit b18b6e5a32
2 changed files with 26 additions and 19 deletions

View File

@@ -18,8 +18,10 @@ industrialtest.Machine={}
function industrialtest.Machine.onConstruct(self,pos)
local meta=minetest.get_meta(pos)
meta:set_string("formspec",self:getFormspec(pos))
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
if not self.withoutFormspec then
meta:set_string("formspec",self:getFormspec(pos))
end
self:trigger(pos)
end
function industrialtest.Machine.onDestruct(self)