mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-09 16:33:44 +01:00
Fix issue where storage drawer saves item name for items with max stack of 1 (#17)
Fix issue where storage drawer saves item name for items with max stack of 1 causing you to not be able to put in other items until breaking the drawer or reloading the game.
This commit is contained in:
parent
336027fbd7
commit
8cfd1185e3
@ -245,6 +245,7 @@ core.register_entity("drawers:visual", {
|
||||
|
||||
-- Don't add items stackable only to 1
|
||||
if self.itemStackMax == 1 then
|
||||
self.itemName = ""
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user