summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Stolberg <joe.stolberg@gmx.de>2017-07-16 12:27:05 +0200
committerJoachim Stolberg <joe.stolberg@gmx.de>2017-07-16 12:27:05 +0200
commitb40c2bf5ce582ca78ea9e22b41b31cf44d704120 (patch)
tree7bfd702076a0ee915d60d352514ca4fb9d830f4f
parent2c7acadb07de63f0c1d6c2f5254f65f1f9a2e094 (diff)
crane remove bug fix
-rw-r--r--init.lua6
1 files 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