Geforce132/SecurityCraft

Crash 1.20.1 - 1.9.9 - java.lang.IllegalArgumentException: Comparison method violates its general contract!

Closed this issue · 7 comments

Issue description

When starting a game and opening the inventory the game crashes sometimes.

The game crashed whilst unexpected error
Error: java.lang.IllegalArgumentException: Comparison method violates its general contract!

"https://pastebin.com/W2v84q0T

Steps to reproduce

Start a new game and open the inventory (only on certain occasions)

Minecraft version

1.20.1

Forge version

47.2.23

SecurityCraft version

v1.9.9

Other relevant versions

No response

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

https://pastebin.com/W2v84q0T

We included a fix for this in v1.9.9, but evidently it does not fully work. What other mods are you using? They're not in the crash report.

2024-04-05-3.log.gz

I send you the complete crash with the list of mods.

Thank you! I would appreciate if you could try out this development version of the mod, to see if the fix I applied in it works for you.

finally The development version of the mod won't crash when i open my inventory in creative mode :>

Thanks for testing! However I'm sorry for asking again, but I noticed a logical error in my fix, which resulted in SecurityCraft's creative tabs not being sorted properly (they should match vanilla tab sorting). Hence here's a second development version with the fixed fix, which I would again greatly appreciate if you tried it out. I'm sorry for this error on my part.
This version should have the crash fix + correctly sorted tabs. Thank you in advance for verifying!

Sorry for late reply it still good and the sorted tabs match vanilla tab sorting now

No worries, thank you so much for testing!