9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-27 18:49:11 +00:00

Still fire synccomplete for dead player syncs

This commit is contained in:
William
2022-07-04 10:26:10 +01:00
parent 649b7c0857
commit 8e5b794b6d

View File

@@ -181,6 +181,7 @@ public class PlayerSetter {
}
// 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) {