Skip to content

Commit

Permalink
visual: Fix itemStackMax not initialized on insert (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: jessicara <[email protected]>
  • Loading branch information
jessicara and jessicara authored Sep 23, 2020
1 parent 4e2e3a0 commit c490b1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/visual.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c490b1f

Please sign in to comment.