From: PilzAdam Date: Sat, 1 Dec 2012 14:20:53 +0000 (+0100) Subject: Only check attachment for nodes with group attached_node X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=fa50341a71bbda80240d9a7e326dfe3bcd5b63e5;p=zefram%2Fminetest%2Fminetest_engine.git Only check attachment for nodes with group attached_node --- diff --git a/builtin/item.lua b/builtin/item.lua index 9352a43f..4be77e1d 100644 --- a/builtin/item.lua +++ b/builtin/item.lua @@ -182,7 +182,8 @@ function minetest.item_place_node(itemstack, placer, pointed_thing) end -- Check if the node is attached and if it can be placed there - if not check_attached_node(place_to, newnode) then + if minetest.get_item_group(def.name, "attached_node") ~= 0 and + not check_attached_node(place_to, newnode) then minetest.log("action", "attached node " .. def.name .. " can not be placed at " .. minetest.pos_to_string(place_to)) return