diff --git a/war/src/main/java/com/tommytony/war/utility/PotionEffectHelper.java b/war/src/main/java/com/tommytony/war/utility/PotionEffectHelper.java index f711b82..67ff373 100644 --- a/war/src/main/java/com/tommytony/war/utility/PotionEffectHelper.java +++ b/war/src/main/java/com/tommytony/war/utility/PotionEffectHelper.java @@ -17,7 +17,7 @@ public class PotionEffectHelper { public static void clearPotionEffects(Player player) { for(PotionEffect effect : player.getActivePotionEffects()) { - player.removePotionEffect(effect.getType()); + player.addPotionEffect(new PotionEffect(effect.getType(), 0, 0), true); } } }