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