From b02c4632040d7d9e266c7b3cc7f14d3a39e64cda Mon Sep 17 00:00:00 2001 From: JinXiuying <58113414+JinXiuying@users.noreply.github.com> Date: Tue, 26 Nov 2019 20:15:50 +0700 Subject: [PATCH] Fixed a very easy and stupid duplication bug Steps to reproduce: 1. Open Compressor GUI 2. Place any item to 1st hotbar slot 3. Leave 2nd slot blank and fill slots 3-9 with any other items 4. Point your cursor on 1st slot and click Shift+LMB 5. Item from first slot will been moved to second slot and their stack size will been increased twice --- .../java/fox/spiteful/avaritia/gui/ContainerCompressor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fox/spiteful/avaritia/gui/ContainerCompressor.java b/src/main/java/fox/spiteful/avaritia/gui/ContainerCompressor.java index 2a468d0..c50e6d3 100644 --- a/src/main/java/fox/spiteful/avaritia/gui/ContainerCompressor.java +++ b/src/main/java/fox/spiteful/avaritia/gui/ContainerCompressor.java @@ -69,7 +69,7 @@ public class ContainerCompressor extends Container { return null; } } - else if (slotNumber >= 3 && slotNumber < 30) + else if (slotNumber >= 2 && slotNumber < 29) { if (!this.mergeItemStack(itemstack1, 29, 38, false)) { @@ -105,4 +105,4 @@ public class ContainerCompressor extends Container { return itemstack; } -} \ No newline at end of file +}