diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BedTrap.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BedTrap.java index 3564f002..dd5079f8 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BedTrap.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/BedTrap.java @@ -62,7 +62,9 @@ public void disable() { @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) private void onPlayerDeath(PlayerDeathEvent event) { - DEAD_PLAYERS.add(event.getPlayer().getUniqueId()); + if (PlatformUtil.isFolia()) { + DEAD_PLAYERS.add(event.getPlayer().getUniqueId()); + } } @SuppressWarnings("deprecation")