branchpanic / stockpile

A Minecraft mod all about storage.
MIT License
10 stars 5 forks source link

Adding fix for issue calculating stockpile size before item is first assigned #103

Closed campbebj closed 3 years ago

campbebj commented 3 years ago

When an barrel is first read from a tag there is an issue where the max capacity can be miscalculated due to the maxCount for the barrel using 16 (the maxCount of the default air item) this can result in a barrel being reset down to a max size of (max Stacks *16) even if it was supposed to be a 64 stack type item. This resulted in many lost items every time the client signed into a server.

branchpanic commented 3 years ago

Hi, thanks for the fix. Fair warning as alluded to by the README -- I'm not sure if or when this will make it into a CF release since I haven't had a Fabric environment on my computer for almost a year now.