mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-12-23 12:52:25 +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
|
-- Don't add items stackable only to 1
|
||||||
if self.itemStackMax == 1 then
|
if self.itemStackMax == 1 then
|
||||||
|
self.itemName = ""
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user