From 3312ed9ff6e531b64ddd39c0efb3e16bc9854f48 Mon Sep 17 00:00:00 2001 From: Jikoo <Jikoo.Games@gmail.com> Date: Sat, 9 Jul 2016 12:51:10 -0400 Subject: [PATCH] Fixed armor/offhand slot display in 1.10 Whoops :D --- .../openinv/internal/v1_10_R1/SpecialPlayerInventory.java | 5 +++++ .../openinv/internal/v1_9_R1/SpecialPlayerInventory.java | 2 +- .../openinv/internal/v1_9_R2/SpecialPlayerInventory.java | 2 +- src/main/resources/plugin.yml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/lishid/openinv/internal/v1_10_R1/SpecialPlayerInventory.java b/src/main/java/com/lishid/openinv/internal/v1_10_R1/SpecialPlayerInventory.java index 53e682ab..057f0fcf 100644 --- a/src/main/java/com/lishid/openinv/internal/v1_10_R1/SpecialPlayerInventory.java +++ b/src/main/java/com/lishid/openinv/internal/v1_10_R1/SpecialPlayerInventory.java @@ -114,6 +114,11 @@ public ItemStack[] getContents() { return contents; } + @Override + public int getSize() { + return super.getSize() + 4; + } + @Override public ItemStack getItem(int i) { ItemStack[] is = this.items; diff --git a/src/main/java/com/lishid/openinv/internal/v1_9_R1/SpecialPlayerInventory.java b/src/main/java/com/lishid/openinv/internal/v1_9_R1/SpecialPlayerInventory.java index 768dabeb..c89aa474 100644 --- a/src/main/java/com/lishid/openinv/internal/v1_9_R1/SpecialPlayerInventory.java +++ b/src/main/java/com/lishid/openinv/internal/v1_9_R1/SpecialPlayerInventory.java @@ -115,7 +115,7 @@ public ItemStack[] getContents() { @Override public int getSize() { - return super.getSize() + 5; + return super.getSize() + 4; } @Override diff --git a/src/main/java/com/lishid/openinv/internal/v1_9_R2/SpecialPlayerInventory.java b/src/main/java/com/lishid/openinv/internal/v1_9_R2/SpecialPlayerInventory.java index 48ad6a0d..5bf275bb 100644 --- a/src/main/java/com/lishid/openinv/internal/v1_9_R2/SpecialPlayerInventory.java +++ b/src/main/java/com/lishid/openinv/internal/v1_9_R2/SpecialPlayerInventory.java @@ -121,7 +121,7 @@ public ItemStack[] getContents() { @Override public int getSize() { - return super.getSize() + 5; + return super.getSize() + 4; } @Override diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d62b000f..cde35c8e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: OpenInv main: com.lishid.openinv.OpenInv -version: 2.5.0 +version: 2.5.1 author: lishid authors: [Jikoo] description: >