mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Use double for multiplying damage. Fixes issue #25.
This commit is contained in:
parent
3c2f48d582
commit
0d0085f423
@ -378,7 +378,7 @@ public class FactionsEntityListener implements Listener {
|
||||
|
||||
// Damage will be dealt. However check if the damage should be reduced.
|
||||
if (damage > 0.0 && ownTerritory && Conf.territoryShieldFactor > 0) {
|
||||
int newDamage = (int) Math.ceil(damage * (1D - Conf.territoryShieldFactor));
|
||||
double newDamage = Math.ceil(damage * (1D - Conf.territoryShieldFactor));
|
||||
sub.setDamage(newDamage);
|
||||
|
||||
// Send message
|
||||
|
Loading…
Reference in New Issue
Block a user