
Crash due to `ArmorUtils` using SingletonList
ghzdude opened this issue ยท 0 comments
GregTech CEu Version
2.8.10 and master
Modpack Used
No response
Addons Installed
No response
Environment
Singleplayer/Server
New Worlds
Yes
Cross-Mod Interaction
Yes
Expected Behavior
Game to not crash when holding a charge-able item in the offhand
Actual Behavior
These lines in ArmorUtils
add a singleton list to the pair map. This is then retreived in these lines in AdvancedNanoMuscleSuite
and an iterator is used. There are calls to Iterator.remove()
, which a singleton list does not support, and throws a UnsupportedOperationException which crashes the game.
Steps to Reproduce
Have a charge-able item in your offhand, and make sure that charging is enabled on the Advanced Nano armor and that the armor is equipped. the game will crash in 5 seconds or sooner.
Additional Information
No response