Silent Gear

Silent Gear

30M Downloads

Negative Durability Value

TR7377 opened this issue · 3 comments

commented

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

2021-11-21_23 44 15
2021-11-21_23 46 20

Steps to Reproduce the Problem

  1. Make Uru chestplate (maxed in grader, star charged 100 ingots; phantom membrane/wool lining; fireite alloy/fireite coating)
  2. Equip Chest plate
  3. Die
commented

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.

commented

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.

commented

Uru is from KubeJS
It’s crafted through Draconic Evo
And it’s used to make the mjolnir hammer from mythic botany (botania)