mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-12 08:18:30 +02:00
Fix behaviour on decabling a forcefield emitter
This commit is contained in:
parent
88bdac62e3
commit
2a7ee141eb
@ -181,7 +181,11 @@ minetest.register_node("technic:forcefield_emitter_on", {
|
||||
end,
|
||||
mesecons = mesecons,
|
||||
technic_run = run,
|
||||
technic_disabled_machine_name = "technic:forcefield_emitter",
|
||||
technic_on_disable = function (pos, node)
|
||||
local meta = minetest.get_meta(pos)
|
||||
update_forcefield(pos, meta:get_int("range"), false)
|
||||
technic.swap_node(pos, "technic:forcefield_emitter_off")
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("technic:forcefield", {
|
||||
|
Loading…
Reference in New Issue
Block a user