diff options
author | Novatux <nathanael.courant@laposte.net> | 2014-06-08 11:04:13 +0200 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-06-08 11:04:13 +0200 |
commit | 0444d738d73c84b3f78d121f625b663fdf26dc20 (patch) | |
tree | aeed21d080d58d10bc119c01d645feccb447726c | |
parent | eeff32781ceaefd15efb17c5d66c83940977e21d (diff) | |
download | pipeworks-0444d738d73c84b3f78d121f625b663fdf26dc20.tar pipeworks-0444d738d73c84b3f78d121f625b663fdf26dc20.tar.gz pipeworks-0444d738d73c84b3f78d121f625b663fdf26dc20.tar.bz2 pipeworks-0444d738d73c84b3f78d121f625b663fdf26dc20.tar.xz pipeworks-0444d738d73c84b3f78d121f625b663fdf26dc20.zip |
Fix deployer sometimes destroying items
-rw-r--r-- | deployer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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() |