From cfe869ba0fbcb163bc354ca29ce7d9a6fb016009 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 20 Feb 2017 18:34:18 -0500 Subject: update homedecor --- plasmascreen/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plasmascreen') 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" -- cgit v1.2.3