From 44cfbecb4982a4124777878b2d349674a66f6d6b Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Thu, 12 Mar 2020 19:17:36 +0100 Subject: [PATCH] Fix inventory size reduction --- Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java index e2e6933..7a8f520 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Backpack.java @@ -252,7 +252,7 @@ public int getSize() ItemStack[] itemStackArray; if(bp.getSize() > newSize) { - InventoryCompressor compressor = new InventoryCompressor(bp.getContents()); + InventoryCompressor compressor = new InventoryCompressor(bp.getContents(), newSize); switch(shrinkApproach) { case FAST: compressor.fast(); break; diff --git a/pom.xml b/pom.xml index f68df8e..f5bfbe9 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom - 2.3.4-RC3 + 2.3.4-RC4 UTF-8 UTF-8