From a46f07cbfbd9ae59b7b1cc2fc32f68c39ae34de0 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 4 Mar 2017 23:58:38 -0500 Subject: updated digilines, framedglass, mesecons, pipeworks, quartz technic, unifiedinventory, and unifiedbricks --- framedglass/init.lua | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'framedglass') diff --git a/framedglass/init.lua b/framedglass/init.lua index 90bd6c5..d42a07b 100644 --- a/framedglass/init.lua +++ b/framedglass/init.lua @@ -100,16 +100,8 @@ function framedglass.color_on_punch(pos, node, puncher, pointed_thing) local itemstack = puncher:get_wielded_item() local itemname = itemstack:get_name() - if not string.find(itemname, "dye:") then - if minetest.registered_nodes[node.name] then - local pos2 = select_node(pointed_thing) - if pos2 and is_buildable_to(puncher, pos2) then - minetest.set_node(pos2, { name = itemname }) - if not creative_mode then - itemstack:take_item() - end - end - end + if not string.find(itemname, "dye:") + and not string.find(itemname, "unifieddyes:") then return itemstack end @@ -138,8 +130,6 @@ function framedglass.color_on_punch(pos, node, puncher, pointed_thing) local inv = puncher:get_inventory() local prevdye = "dye:"..oldcolor2 - print(oldcolor, oldcolor2, newcolor, newcolor2, prevdye) - if not (inv:contains_item("main", prevdye) and creative_mode) and minetest.registered_items[prevdye] then if inv:room_for_item("main", prevdye) then inv:add_item("main", prevdye) -- cgit v1.2.3