Memory Storage 📦


An alternative to warehouses. The Memory Unit can store an infinite amount of a single item type. The more items you store, the more power it will require!

Content
15 days ago
1.0 - 2.0
36.8K
Storage

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

5 months 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 :)