From ef90e46b347121ec1f31d4144dabb9b72da4fa0f Mon Sep 17 00:00:00 2001 From: bas080 Date: Fri, 15 Mar 2013 17:27:03 +0100 Subject: [PATCH] Fixed rope dropping --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 436535a..29a1e70 100644 --- a/init.lua +++ b/init.lua @@ -223,11 +223,9 @@ minetest.register_abm({ action = function(pos, node, active_object_count, active_object_count_wider) local p = {x=pos.x, y=pos.y-1, z=pos.z} local n = minetest.env:get_node(p) - --remove if top node is removed if n.name == "air" then - minetest.env:remove_node(pos) - minetest.env:add_node(pos, {name="vines:rope"}) + minetest.env:set_node(pos, {name="vines:rope"}) minetest.env:add_node(p, {name="vines:rope_end"}) end end