Skip to content

Commit

Permalink
only do operation if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Sep 5, 2024
1 parent 9024a3e commit cb4766e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cb4766e

Please sign in to comment.