From 662be1a11f0cbe84e3091e57cf375b35cd3ba5a2 Mon Sep 17 00:00:00 2001 From: SwissalpS Date: Wed, 14 Oct 2020 19:17:59 +0200 Subject: [PATCH] allow items to be taken from full drawers I don't see why you wouldn't want to be able to take items from full drawers. --- lua/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/api.lua b/lua/api.lua index c93f7ca..b4db2bd 100755 --- a/lua/api.lua +++ b/lua/api.lua @@ -257,7 +257,7 @@ function drawers.drawer_take_item(pos, itemstack) end for _, visual in pairs(drawer_visuals) do - if visual.itemName == itemstack:get_name() and visual.count ~= visual.maxCount then + if visual.itemName == itemstack:get_name() then return visual:take_items(itemstack:get_count()) end end @@ -424,3 +424,4 @@ function drawers.register_drawer_upgrade(name, def) }) end end +