Fixed Heroic, obsidiorite #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "Jotunn/TAIGA-Obsidiorite-Heroic-Fixes:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
Good to see you got here in the end :)
Just some questions (see review below).
Is META-INF/MANIFEST.MF required? Did I missing something in forge?
@@ -33,2 +26,4 @@
} else return super.damage(tool, player, target, damage, newDamage * 0.9f, isCritical);
}
private int noLessThanOne(int input){
You don't need that, just use
Math.max(durabilitymax - durability - 1, 1)
.On second thought, maybe that whole logic is flawed.
durabilitymax - durability
should always be >= 0, right? So just changing that toMath.max(durabilitymax - durability, 1)
would do it, if I'm not mistaken.We need to be careful here to not change behaviour accidentally, since this part was written by Zkaface, so I'm not quite sure about the mechanics.
Closing this as stale.
Pull request closed