Max should've been 4096 but it's 4099. I was able to reproduce this consistently by using a hopper.
I believe this is actually what's causing the crash in https://github.com/MattiDragon/ExtendedDrawers/issues/66 as item went above the limit and when MI tried to insert it returns negative value.
Reproduction steps
Have 4095 clays on the drawer. (1023 clay blocks)
Hopper in a clay block.
Reality: Clay block inserted, allowing clay to go above max
Expected: Clay block not inserted as it has reached maximum
Description of the issue
Max should've been 4096 but it's 4099. I was able to reproduce this consistently by using a hopper. I believe this is actually what's causing the crash in https://github.com/MattiDragon/ExtendedDrawers/issues/66 as item went above the limit and when MI tried to insert it returns negative value.
Reproduction steps
Mod version
v1.4.1
Operating System
Windows 10
Minecraft version
1.19.2
Other mods
No additional mods
Server
Happens
Client
Happens
Logs
no crash in this case, no log
Extra Context
No response