ThePansmith / Monifactory

A Modern Remaster of Nomifactory
GNU Lesser General Public License v3.0
215 stars 107 forks source link

[Bug]: Iron downgrades in compacting drawers result in wrong storage caps #1105

Open RolaRoul opened 1 week ago

RolaRoul commented 1 week ago

Issue Summary

Compacting drawers with an iron downgrade should be able to store a max of 64 of the most compacted item (block of coal, etc). However, for most items, the max is larger, and for some combinations the downgrade actually increases the storage. Coal in 3-slot drawer: Max 4.6k blocks (without downgrade) -> max 576 blocks (with downgrade) Coal in 2-slot drawer: Max 512 blocks -> max 576 blocks Iron in 3-slot drawer: Max 512 blocks -> max 64 blocks, can't insert downgrade if there are more than 64 nuggets in the drawer Iron in 2-slot drawer: Max 512 blocks -> max 576 blocks Certus in 3-slot drawer: Max 10.4 blocks -> max 1.3 blocks Certus in 2-slot drawer: Max 1.2 blocks -> max 1.3 blocks

Reproduction steps

  1. Place compacting drawer.
  2. Insert compactable item (coal, ingots, etc).
  3. Insert iron downgrade

Relevant log output

No response