mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-02-04 12:10:17 +01:00
gates: update wires after overheat
This commit is contained in:
parent
f78937b351
commit
96a6ecfdf7
@ -28,7 +28,7 @@ local function set_gate(pos, node, state)
|
|||||||
|
|
||||||
if mesecon.do_overheat(pos) then
|
if mesecon.do_overheat(pos) then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
mesecon.receptor_off(pos, gate_get_output_rules(node))
|
mesecon.on_dignode(pos, node)
|
||||||
minetest.add_item(pos, gate.drop)
|
minetest.add_item(pos, gate.drop)
|
||||||
elseif state then
|
elseif state then
|
||||||
minetest.swap_node(pos, {name = gate.onstate, param2=node.param2})
|
minetest.swap_node(pos, {name = gate.onstate, param2=node.param2})
|
||||||
|
Loading…
Reference in New Issue
Block a user