mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-06-28 12:56:01 +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:
@ -127,7 +127,7 @@ minetest.register_node("plasmascreen:tv", {
|
||||
return true -- "API: If return true no item is taken from itemstack"
|
||||
end
|
||||
end,
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "plasmascreen:tv_off", param2 = node.param2})
|
||||
end
|
||||
})
|
||||
@ -155,7 +155,7 @@ minetest.register_node("plasmascreen:tv_off", {
|
||||
return true -- "API: If return true no item is taken from itemstack"
|
||||
end
|
||||
end,
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "plasmascreen:tv", param2 = node.param2})
|
||||
end,
|
||||
drop = "plasmascreen:tv"
|
||||
|
Reference in New Issue
Block a user