mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
Fix compatibility with not yet updated mods that use mesecon:receptor_*
This commit is contained in:
@ -11,7 +11,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", {
|
||||
}},
|
||||
on_punch = function(pos, node)
|
||||
minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_on", param2 = node.param2})
|
||||
mesecon.receptor_on(pos)
|
||||
mesecon:receptor_on(pos)
|
||||
minetest.sound_play("mesecons_switch", {pos=pos})
|
||||
end
|
||||
})
|
||||
@ -27,7 +27,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", {
|
||||
}},
|
||||
on_punch = function(pos, node)
|
||||
minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_off", param2 = node.param2})
|
||||
mesecon.receptor_off(pos)
|
||||
mesecon:receptor_off(pos)
|
||||
minetest.sound_play("mesecons_switch", {pos=pos})
|
||||
end
|
||||
})
|
||||
|
Reference in New Issue
Block a user