mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-09 16:33:44 +01:00
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.
This commit is contained in:
parent
361719180b
commit
662be1a11f
@ -257,7 +257,7 @@ function drawers.drawer_take_item(pos, itemstack)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _, visual in pairs(drawer_visuals) do
|
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())
|
return visual:take_items(itemstack:get_count())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -424,3 +424,4 @@ function drawers.register_drawer_upgrade(name, def)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user