From dcf3ebebe1b47004e6b5ca075b2a20daeb1c23d6 Mon Sep 17 00:00:00 2001 From: IAmSoccer <62361314+IAmSoccer@users.noreply.github.com> Date: Wed, 19 Jan 2022 22:22:24 -0600 Subject: [PATCH] Removes it Storing and Adding Back Potion Effects --- .../damagenullifieronteleportorjoin/NullifyListener.java | 3 --- 1 file changed, 3 deletions(-) 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); } } }