mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 09:37:42 +01:00
i forgot about the hotbar.
This commit is contained in:
parent
ea420ab05f
commit
489708b206
@ -127,7 +127,7 @@ public class AuthMeInventoryPacketAdapter extends PacketAdapter {
|
|||||||
ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
|
ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
|
||||||
PacketContainer inventoryPacket = protocolManager.createPacket(PacketType.Play.Server.WINDOW_ITEMS);
|
PacketContainer inventoryPacket = protocolManager.createPacket(PacketType.Play.Server.WINDOW_ITEMS);
|
||||||
inventoryPacket.getIntegers().write(0, PLAYER_INVENTORY);
|
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];
|
ItemStack[] blankInventory = new ItemStack[inventorySize];
|
||||||
Arrays.fill(blankInventory, new ItemStack(Material.AIR));
|
Arrays.fill(blankInventory, new ItemStack(Material.AIR));
|
||||||
inventoryPacket.getItemArrayModifier().write(0, blankInventory);
|
inventoryPacket.getItemArrayModifier().write(0, blankInventory);
|
||||||
|
Loading…
Reference in New Issue
Block a user