mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-12-22 20:42:22 +01:00
visual: Fix itemStackMax not initialized on insert (#53)
Co-authored-by: jessicara <chi@chi.hakurei.shrine>
This commit is contained in:
parent
4e2e3a02b4
commit
c490b1fc12
@ -317,6 +317,7 @@ core.register_entity("drawers:visual", {
|
||||
self.count = 0
|
||||
self.itemName = itemstack:get_name()
|
||||
self.maxCount = itemstack:get_stack_max() * self.stackMaxFactor
|
||||
self.itemStackMax = itemstack:get_stack_max()
|
||||
end
|
||||
|
||||
-- update everything
|
||||
|
Loading…
Reference in New Issue
Block a user