mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Merge pull request #373 from mikeprimm/master
Fix armor calculation - round vs truncate
This commit is contained in:
commit
2f7e7ad87b
@ -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