mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-8070: Incorrect player inventory size returned by getInventory()
This commit is contained in:
parent
12491dea36
commit
75675dcaef
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,11 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
|||
return (PlayerInventory) inventory;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSize() {
|
||||
return PlayerInventory.SLOT_OFFHAND + 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack[] getStorageContents() {
|
||||
return asCraftMirror(getInventory().getNonEquipmentItems());
|
||||
|
|
Loading…
Add table
Reference in a new issue