diff --git a/src/at/hugo/bukkit/plugin/damagenullifieronteleportorjoin/NullifyListener.java b/src/at/hugo/bukkit/plugin/damagenullifieronteleportorjoin/NullifyListener.java index 8b338e7..2c717a0 100644 --- a/src/at/hugo/bukkit/plugin/damagenullifieronteleportorjoin/NullifyListener.java +++ b/src/at/hugo/bukkit/plugin/damagenullifieronteleportorjoin/NullifyListener.java @@ -125,7 +125,6 @@ private class PlayerInfo { public final int foodLevel; public final float saturation; public final float exhaustion; - public final Collection potionEffects; public PlayerInfo(final BukkitTask removalTask, final BossBarTimer bossBarTask, final Player player) { this.removalTask = removalTask; @@ -134,7 +133,6 @@ public PlayerInfo(final BukkitTask removalTask, final BossBarTimer bossBarTask, this.foodLevel = player.getFoodLevel(); this.saturation = player.getSaturation(); this.exhaustion = player.getExhaustion(); - this.potionEffects = player.getActivePotionEffects(); } public void applyToPlayer(final Player player) { @@ -142,7 +140,6 @@ public void applyToPlayer(final Player player) { player.setFoodLevel(foodLevel); player.setExhaustion(exhaustion); player.setSaturation(saturation); - player.addPotionEffects(potionEffects); } } }