ChaoticTrials / UtilitiX

Nice to have items, blocks, and other features.
https://modrinth.com/mod/utilitix
Apache License 2.0
7 stars 3 forks source link

Crash When Combining two uncolored/empty Backpacks #68

Closed xilef310 closed 1 month ago

xilef310 commented 1 month ago

Minecraft version

1.20.1

LibX version

5.0.14

UtilitiX version

0.8.22

Forge version

47.3.7

The latest.log file

https://pastebin.com/4gfdUWLg

Issue description

When combining 2 freshly crafted, empty, uncolored backpacks. The game crashed. with "The game crashed whilst container click Error: java.lang.ArithmeticException: / by zero"

I did previously combined some and it worked. Just now I colored one backpack and combining with that one now worked. Im guessing the missing color is the issue.

Steps to reproduce

  1. Play ATM9
  2. Get two basic unmodified backpacks.
  3. Combine them in your inventory with right click
  4. Should crash

Other information

I am playing ATM9 0.3.2 btw.

MelanX commented 1 month ago

Does ATM9 add the backpack to a blacklist for sorting mods? If not, please never sort inventory in backpack inv :D See #66