From 6d00d9dd5adfb48e7a8532d62c586b1b202e4a64 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 8 Feb 2013 14:34:12 -0500 Subject: [PATCH] got rid of commented-out code --- door_nodes.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/door_nodes.lua b/door_nodes.lua index 1b9d82eb..fcf03c9f 100644 --- a/door_nodes.lua +++ b/door_nodes.lua @@ -159,35 +159,6 @@ for i in ipairs(sides) do end, on_place = function(itemstack, placer, pointed_thing) - - --[[ - -- for some obscure reason, this callback is used if the target node - -- is a homedecor door, probably because they have an on_rightclick - -- setting -- but only if you're weilding a door! - - if string.find(node.name, "homedecor:door_") then - - local lr = nil - if string.find(node.name, "left") then - lr = "left" - else - lr = "right" - end - - local tb = nil - if string.find(node.name, "top") then - tb = "top" - else - tb = "bottom" - end - - local dname = string.gsub(string.gsub(string.gsub(node.name, "homedecor:door_", ""), "_"..lr, ""), "_"..tb, "") - - print(node.name) - print(dname) - print(lr) - ]]-- - local node=minetest.env:get_node(pointed_thing.under) if not minetest.registered_nodes[node.name].on_rightclick then return homedecor_place_door(itemstack, placer, pointed_thing, doorname, side)