From c7e9c7c160cb790f89b9ffce1ef6d4986e395948 Mon Sep 17 00:00:00 2001 From: Novatux Date: Wed, 30 Oct 2013 08:45:29 +0100 Subject: Fix node breaker crash. --- deployer.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'deployer.lua') 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 -- cgit v1.2.3