mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 22:06:03 +02:00
Use minetest.swap_node() instead of mesecons' version, Minor code changes
here and there to facilitate this.
This commit is contained in:
@ -62,7 +62,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
|
||||
state = mesecon.state.on
|
||||
}},
|
||||
on_punch = function(pos, node, puncher)
|
||||
mesecon:swap_node(pos, "mesecons_blinkyplant:blinky_plant")
|
||||
minetest.swap_node(pos, {name = "mesecons_blinkyplant:blinky_plant"})
|
||||
mesecon:receptor_off(pos)
|
||||
end
|
||||
})
|
||||
|
Reference in New Issue
Block a user