From 79b26fd8c1b4a04d47e71d4877ee31fb5c67e0c5 Mon Sep 17 00:00:00 2001 From: CalebJ <4073196-KaylebJay@users.noreply.gitlab.com> Date: Thu, 15 Oct 2020 15:30:46 +0000 Subject: [PATCH] just remove that for now --- init.lua | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/init.lua b/init.lua index 29cd9c9..a878710 100644 --- a/init.lua +++ b/init.lua @@ -53,40 +53,3 @@ minetest.register_alias('shower_tray', '3dforniture:shower_tray') minetest.register_alias('shower_head', '3dforniture:shower_head') minetest.register_alias('table_lamp', '3dforniture:table_lamp_off') minetest.register_alias('armchair', '3dforniture:armchair') - ---function - -local on_lamp_puncher = function (pos, node, puncher) - if node.name == "3dforniture:table_lamp_off" then - minetest.env:add_node(pos, {name="3dforniture:table_lamp_low"}) - nodeupdate(pos) - elseif node.name == "3dforniture:table_lamp_low" then - minetest.env:add_node(pos, {name="3dforniture:table_lamp_med"}) - nodeupdate(pos) - elseif node.name == "3dforniture:table_lamp_med" then - minetest.env:add_node(pos, {name="3dforniture:table_lamp_hi"}) - nodeupdate(pos) - elseif node.name == "3dforniture:table_lamp_hi" then - minetest.env:add_node(pos, {name="3dforniture:table_lamp_max"}) - nodeupdate(pos) - elseif node.name == "3dforniture:table_lamp_max" then - minetest.env:add_node(pos, {name="3dforniture:table_lamp_off"}) - nodeupdate(pos) - end -end - - -local on_toilet_puncher = function (pos, node, puncher) - if node.name == '3dforniture:toilet' then - local dir = node["param2"] - minetest.env:add_node(pos, {name="3dforniture:toilet_open", paramtype2='none', param2=dir}) - nodeupdate(pos) - elseif node.name == '3dforniture:toilet_open' then - local dir = node["param2"] - minetest.env:add_node(pos, {name="3dforniture:toilet", paramtype2='none', param2=dir}) - nodeupdate(pos) - end -end - -minetest.register_on_punchnode(on_lamp_puncher) -minetest.register_on_punchnode(on_toilet_puncher)