mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
Replace mesecon:<some_function> with mesecon.<some_function> for greater
flexibility and because it was never inteded to be OOP in the first place. mesecon.receptor_on and mesecon.receptor_off are provided by wrappers (mesecon:receptor_on/off) for compatibility, but will be removed. Mod programmers that use mesecons: Please update! Also, fix microcontroller polluting the global namespace and remove some deprecated stuff.
This commit is contained in:
@ -75,7 +75,7 @@ minetest.register_abm(
|
||||
|
||||
if light >= 12 then
|
||||
minetest.set_node(pos, {name="mesecons_solarpanel:solar_panel_on", param2=node.param2})
|
||||
mesecon:receptor_on(pos)
|
||||
mesecon.receptor_on(pos)
|
||||
end
|
||||
end,
|
||||
})
|
||||
@ -89,7 +89,7 @@ minetest.register_abm(
|
||||
|
||||
if light < 12 then
|
||||
minetest.set_node(pos, {name="mesecons_solarpanel:solar_panel_off", param2=node.param2})
|
||||
mesecon:receptor_off(pos)
|
||||
mesecon.receptor_off(pos)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
Reference in New Issue
Block a user