diff --git a/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java b/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java index a7f9ff0d..54fb75f5 100644 --- a/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java +++ b/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java @@ -157,7 +157,9 @@ public class BukkitPlayer extends OnlineUser { return BukkitSerializer.deserializeInventory(itemData.serializedItems).thenApplyAsync(contents -> { final CompletableFuture inventorySetFuture = new CompletableFuture<>(); Bukkit.getScheduler().runTask(BukkitHuskSync.getInstance(), () -> { + player.setItemOnCursor(null); player.getInventory().setContents(contents.getContents()); + player.updateInventory(); inventorySetFuture.complete(null); }); return inventorySetFuture.join();