Re-add Mesecons compatibility
This commit is contained in:
parent
8e4fdb217a
commit
acdbad46c6
@ -27,16 +27,15 @@ local override={
|
||||
meta:set_int("maintainSpeed",1)
|
||||
|
||||
local def=minetest.registered_nodes[node.name]
|
||||
def._industrialtest_updateFormspec(pos)
|
||||
|
||||
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
|
||||
def._industrialtest_self:updateFormspec(pos)
|
||||
def._industrialtest_self:trigger(pos)
|
||||
end,
|
||||
action_off=function(pos,node)
|
||||
local meta=minetest.get_meta(pos)
|
||||
meta:set_int("maintainSpeed",0)
|
||||
|
||||
local def=minetest.registered_nodes[node.name]
|
||||
def._industrialtest_updateFormspec(pos)
|
||||
def._industrialtest_self:updateFormspec(pos)
|
||||
end
|
||||
}
|
||||
}
|
||||
@ -69,13 +68,13 @@ override={
|
||||
meta:set_int("stateChanged",1)
|
||||
|
||||
local def=minetest.registered_nodes[node.name]
|
||||
def._industrialtest_updateFormspec(pos)
|
||||
def._industrialtest_self:updateFormspec(pos)
|
||||
|
||||
if isChamber then
|
||||
def._industrialtest_synchronizeToChamber(originalPos)
|
||||
def._industrialtest_self:synchronizeToChamber(originalPos)
|
||||
end
|
||||
|
||||
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
|
||||
def._industrialtest_self:triggerIfNeeded(pos)
|
||||
end,
|
||||
action_off=function(pos,node)
|
||||
local isChamber=node.name=="industrialtest:nuclear_reactor_chamber"
|
||||
@ -107,10 +106,10 @@ override={
|
||||
meta:set_int("stateChanged",1)
|
||||
|
||||
local def=minetest.registered_nodes[node.name]
|
||||
def._industrialtest_updateFormspec(pos)
|
||||
def._industrialtest_self:updateFormspec(pos)
|
||||
|
||||
if isChamber then
|
||||
def._industrialtest_synchronizeToChamber(originalPos)
|
||||
def._industrialtest_self:synchronizeToChamber(originalPos)
|
||||
end
|
||||
end
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user