summaryrefslogtreecommitdiff
path: root/deployer.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-10-30 08:45:29 +0100
committerNovatux <nathanael.courant@laposte.net>2013-10-30 08:45:29 +0100
commitc7e9c7c160cb790f89b9ffce1ef6d4986e395948 (patch)
tree747875317749ca15dd0be25e29f050e52e84460a /deployer.lua
parentdc1ef38a580406015ca18bd683615f27d9aabb50 (diff)
downloadpipeworks-c7e9c7c160cb790f89b9ffce1ef6d4986e395948.tar
pipeworks-c7e9c7c160cb790f89b9ffce1ef6d4986e395948.tar.gz
pipeworks-c7e9c7c160cb790f89b9ffce1ef6d4986e395948.tar.bz2
pipeworks-c7e9c7c160cb790f89b9ffce1ef6d4986e395948.tar.xz
pipeworks-c7e9c7c160cb790f89b9ffce1ef6d4986e395948.zip
Fix node breaker crash.
Diffstat (limited to 'deployer.lua')
-rw-r--r--deployer.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/deployer.lua b/deployer.lua
index 49d556b..b8a4850 100644
--- a/deployer.lua
+++ b/deployer.lua
@@ -100,7 +100,7 @@ function hacky_swap_node(pos,name)
meta:from_table(meta0)
end
-function delay(x)
+local function delay(x)
return (function() return x end)
end
@@ -121,7 +121,6 @@ deployer_on = function(pos, node)
local invlist = inv:get_list("main")
for i, stack in ipairs(invlist) do
if stack:get_name() ~= nil and stack:get_name() ~= "" and minetest.get_node(pos_under).name == "air" then --obtain the first non-empty item slot
- local empty_function = function() return end
local pitch
local yaw
if dir.z < 0 then