forked from mtcontrib/pipeworks
Fix deployer sometimes destroying items
This commit is contained in:
parent
eeff32781c
commit
0444d738d7
@ -95,7 +95,7 @@ local function deployer_on(pos, node)
|
|||||||
local pointed_thing = {type="node", under=pos_under, above=pos_above}
|
local pointed_thing = {type="node", under=pos_under, above=pos_above}
|
||||||
local stack2
|
local stack2
|
||||||
if minetest.registered_items[stack:get_name()] then
|
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
|
end
|
||||||
--if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then --infinite stacks ahoy!
|
--if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then --infinite stacks ahoy!
|
||||||
-- stack2:take_item()
|
-- stack2:take_item()
|
||||||
|
Loading…
Reference in New Issue
Block a user