Negative Durability Value
TR7377 opened this issue · 3 comments
Versions
- Silent Gear: 2.6.30
- Silent's Gems: N/A
- Silent Lib: 4.9.6
- Forge: 36.2.8
- Modpack: All the Mods 6
- Optifine Installed: Yes
Expected Behavior
Chest plate not breaking
Actual Behavior
I made a chest plate made out of uru (fireite alloy/fireite coating, phantom membrane/wool lining), The mod pack allows us to rise star charge above the normal max (in my case I enchanted the uru with star charged 100). My finished chest plate ended up having a durability value of -2147483648. After I died the chest plate broke due to the negative value. Is there a way to prevent it from breaking?
Links/Images
Steps to Reproduce the Problem
- Make Uru chestplate (maxed in grader, star charged 100 ingots; phantom membrane/wool lining; fireite alloy/fireite coating)
- Equip Chest plate
- Die
After looking at the durability using 'sgear_stats info' on him it would appear the durability is set to 2147483648 which is more than the max 32bit signed integer which is 2147483647 causing the int overflow.
Strange, the stats should always be clamped to valid values. Plenty of players have found ways to create capped durability items like that, but I've never seen a stat overflow.
Also, what mod is uru from? I've heard it mentioned before, but I'm not familiar with it.