From 489708b2069656f671359f73683407ea7a2d5ef0 Mon Sep 17 00:00:00 2001 From: DNx5 Date: Wed, 25 Nov 2015 00:44:38 +0700 Subject: [PATCH] i forgot about the hotbar. --- .../fr/xephi/authme/listener/AuthMeInventoryPacketAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMeInventoryPacketAdapter.java b/src/main/java/fr/xephi/authme/listener/AuthMeInventoryPacketAdapter.java index 388f4049c..a333dbd2e 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMeInventoryPacketAdapter.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMeInventoryPacketAdapter.java @@ -127,7 +127,7 @@ public class AuthMeInventoryPacketAdapter extends PacketAdapter { ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager(); PacketContainer inventoryPacket = protocolManager.createPacket(PacketType.Play.Server.WINDOW_ITEMS); inventoryPacket.getIntegers().write(0, PLAYER_INVENTORY); - int inventorySize = CRAFTING_SIZE + ARMOR_SIZE + MAIN_SIZE; + int inventorySize = CRAFTING_SIZE + ARMOR_SIZE + MAIN_SIZE + HOTBAR_SIZE; ItemStack[] blankInventory = new ItemStack[inventorySize]; Arrays.fill(blankInventory, new ItemStack(Material.AIR)); inventoryPacket.getItemArrayModifier().write(0, blankInventory);