From 0444d738d73c84b3f78d121f625b663fdf26dc20 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 8 Jun 2014 11:04:13 +0200 Subject: [PATCH] Fix deployer sometimes destroying items --- deployer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployer.lua b/deployer.lua index 40b5883..d0ef9f6 100644 --- a/deployer.lua +++ b/deployer.lua @@ -95,7 +95,7 @@ local function deployer_on(pos, node) local pointed_thing = {type="node", under=pos_under, above=pos_above} local stack2 if minetest.registered_items[stack:get_name()] then - stack2 = minetest.registered_items[stack:get_name()].on_place(stack, placer, pointed_thing) + stack2 = minetest.registered_items[stack:get_name()].on_place(stack, placer, pointed_thing) or stack end --if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then --infinite stacks ahoy! -- stack2:take_item() -- 2.30.2