From b40c2bf5ce582ca78ea9e22b41b31cf44d704120 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 16 Jul 2017 12:27:05 +0200 Subject: [PATCH] crane remove bug fix --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ada2963..6681b2c 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,7 @@ Tower Crane Mod =============== - v0.06 by JoSt + v0.07 by JoSt Copyright (C) 2017 Joachim Stolberg LGPLv2.1+ @@ -16,6 +16,7 @@ 2017-06-08 v0.04 recipe and rope length now configurable 2017-06-10 v0.05 resizing bugfix, area protection added 2017-07-11 v0.06 fixed the space check bug, settingtypes added + 2017-07-16 v0.07 crane remove bug fix ]]-- @@ -244,7 +245,8 @@ end ---------------------------------------------------------------------------------------------------- local function remove_crane(pos, dir, height, width) local remove = function(pos, node_name, tArg) - if minetest.get_node_or_nil(pos).name == node_name then + if minetest.get_node_or_nil(pos).name == node_name or + minetest.get_node_or_nil(pos).name == "towercrane:mast_ctrl_on" then minetest.remove_node(pos) end end