From: Novatux Date: Sun, 8 Jun 2014 09:04:13 +0000 (+0200) Subject: Fix deployer sometimes destroying items X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=0444d738d73c84b3f78d121f625b663fdf26dc20;p=zefram%2Fminetest%2Fpipeworks.git Fix deployer sometimes destroying items --- 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()