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.
master
SwissalpS 2020-10-14 19:17:59 +02:00 committed by Linus Jahn
parent 361719180b
commit 662be1a11f
1 changed files with 2 additions and 1 deletions

View File

@ -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