Content
1 year, 9 months ago
1.0 - 2.0
44.0K
Storage

b [1.3.5] Item count goes to 0 when stack size is too large

2 years ago

If the item stack size is too large (e.g. 400M), then after ~4.2G items, the memory unit counter goes back to 0.

Was able to fix it by making every instance of unit_data.comfortable at most 2147483647 (I didn't check if there's a better upper bound, just copied the number from the function update_combinator).

I think this happens because every container with n items displays mod(n, ~4.2G) items (If you hover over a chest with 10G of an item, it will show it has 1.4G).

Thanks in advance :)