mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 19:47:45 +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