mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-22 15:20:22 +02:00
switch over all punch-operated objects
to use on_rightclick instead, for consistency with other parts of minetest, minetest_game, etc.
This commit is contained in:
@ -513,7 +513,7 @@ homedecor.register("ceiling_lamp", {
|
||||
light_source = default.LIGHT_MAX,
|
||||
groups = {snappy=3},
|
||||
walkable = false,
|
||||
on_punch = function(pos, node, puncher)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:ceiling_lamp_off"})
|
||||
end,
|
||||
})
|
||||
@ -529,7 +529,7 @@ homedecor.register("ceiling_lamp_off", {
|
||||
},
|
||||
groups = {snappy=3, not_in_creative_inventory=1},
|
||||
walkable = false,
|
||||
on_punch = function(pos, node, puncher)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:ceiling_lamp"})
|
||||
end,
|
||||
drop = "homedecor:ceiling_lamp"
|
||||
|
Reference in New Issue
Block a user