From df0161f65e44987cc389397799d947728b1e71fd Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 23 Jun 2013 19:30:16 -0400 Subject: [PATCH] No infinite stacks allowed! Fix the bug where deployers have infinite stacks just like players. --- deployer.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployer.lua b/deployer.lua index 5b500b7..7622b52 100644 --- a/deployer.lua +++ b/deployer.lua @@ -58,6 +58,9 @@ deployer_on = function(pos, node) get_player_control = function() return {jump=false,right=false,left=false,LMB=false,RMB=false,sneak=false,aux1=false,down=false,up=false} end, } local stack2 = minetest.item_place(stack, placer, {type="node", under=pos1, above=pos2}) + if minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory") then --infinite stacks ahoy! + stack2:take_item() + end invlist[i] = stack2 inv:set_list("main", invlist) return