From 91bdeb4f3c9b01cc831f7ed63b3ae2cfa602329d Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 19 Jan 2015 10:08:29 +0100 Subject: [PATCH] Use MassiveCore setDamage --- src/com/massivecraft/factions/engine/EngineMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/engine/EngineMain.java b/src/com/massivecraft/factions/engine/EngineMain.java index 6ebe0379..2a0efa84 100644 --- a/src/com/massivecraft/factions/engine/EngineMain.java +++ b/src/com/massivecraft/factions/engine/EngineMain.java @@ -960,7 +960,7 @@ public class EngineMain extends EngineAbstract if (damage > 0.0 && udefender.hasFaction() && ownTerritory && MConf.get().territoryShieldFactor > 0) { double newDamage = damage * (1D - MConf.get().territoryShieldFactor); - event.setDamage(newDamage); + MUtil.setDamage(event, newDamage); // Send message if (notify)