Sophisticated Core

Sophisticated Core

49M Downloads

Quick move causes items to disappear

jcrAron opened this issue ยท 1 comments

commented

version

1.20.x

what happened?

  1. install the mod https://www.curseforge.com/minecraft/mc-mods/one-stack to change max count of itemstacks
  2. Open barrel (or chest) GUI
  3. Place an item with a count of 2,147,483,648 into the chest
  4. Quick move another item to the chest
  5. the items disappears both

When the itemstack count is large, such as 2,147,483,648, margining to another itemstack will cause integer overflow.

I think...

change


to

if (j <= maxSize && j > 0)
commented

I am sure there would be a ton of other issues with that mod as it must be overriding other stuff in multiple places so you can just consider that incompatibility and you need to decide whether you want to play with backpacks/storage or that mod. Sophisticated also has stack upgrades to raise stack counts.