summaryrefslogtreecommitdiff
path: root/plasmascreen/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plasmascreen/init.lua')
-rw-r--r--plasmascreen/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plasmascreen/init.lua b/plasmascreen/init.lua
index 109e418..183d1f9 100644
--- a/plasmascreen/init.lua
+++ b/plasmascreen/init.lua
@@ -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"