mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-05 14:31:55 +01:00
Fix armor calculation - round vs truncate
This commit is contained in:
parent
8d5233befd
commit
ba9e27f451
@ -31,6 +31,6 @@ public class Armor {
|
||||
currentDurability += maxDurability - durability;
|
||||
baseArmorPoints += armorPoints[i];
|
||||
}
|
||||
return (int)(2*baseArmorPoints*currentDurability/baseDurability);
|
||||
return (int)Math.round(2*baseArmorPoints*currentDurability/baseDurability);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user