1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

got rid of commented-out code

This commit is contained in:
Vanessa Ezekowitz 2013-02-08 14:34:12 -05:00
parent c62a4a549a
commit 6d00d9dd5a

View File

@ -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)