Skip to content

Commit

Permalink
Still fire synccomplete for dead player syncs
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Jul 4, 2022
1 parent 649b7c0 commit 8e5b794
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public static void setPlayerFrom(Player player, PlayerData dataToSet) {
}
// Don't sync the player if they are dead
if (player.isDead() || player.getHealth() <= 0) {
Bukkit.getPluginManager().callEvent(new SyncCompleteEvent(player, data));
return;
}
if (Settings.syncInventories) {
Expand Down

0 comments on commit 8e5b794

Please sign in to comment.