From 99704e7c294b2485dea1b1e0cb780e545b1e7b8b Mon Sep 17 00:00:00 2001 From: DNx5 Date: Mon, 27 Jun 2016 16:50:45 +0700 Subject: [PATCH] - Quick fix. Safely update player's inventory. * because it bugs me when i have items with custom NBT Tag --- .../fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java b/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java index 8f8f32ec1..521928332 100644 --- a/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java +++ b/src/main/java/fr/xephi/authme/process/login/ProcessSyncPlayerLogin.java @@ -70,8 +70,8 @@ public class ProcessSyncPlayerLogin implements SynchronousProcess { private void restoreInventory(Player player) { RestoreInventoryEvent event = new RestoreInventoryEvent(player); pluginManager.callEvent(event); - if (!event.isCancelled() && plugin.inventoryProtector != null) { - plugin.inventoryProtector.sendInventoryPacket(player); + if (!event.isCancelled()) { + player.updateInventory(); } }