From 8e5b794b6d793b446ad7bf7414dc0a80ad4fe9b9 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 4 Jul 2022 10:26:10 +0100 Subject: [PATCH] Still fire synccomplete for dead player syncs --- .../java/net/william278/husksync/bukkit/util/PlayerSetter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bukkit/src/main/java/net/william278/husksync/bukkit/util/PlayerSetter.java b/bukkit/src/main/java/net/william278/husksync/bukkit/util/PlayerSetter.java index 5f8fc70c..f28d9433 100644 --- a/bukkit/src/main/java/net/william278/husksync/bukkit/util/PlayerSetter.java +++ b/bukkit/src/main/java/net/william278/husksync/bukkit/util/PlayerSetter.java @@ -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) {