From 4fefd312bd6be3bac526123589870322e906571e Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Fri, 31 Mar 2023 21:26:55 +0200 Subject: [PATCH] Fixes FabledSkyBlock Stackable Blocks getting reset and not incremented If pointing a hopper to a stackable, the stackable gets reset to 0 and the item remains in the hopper. This is because a `Stackable` instance can be created without any maxSize being set causing it to default to `0`. This is probably more of a workaround/hack and should be fixed in FabledSkyBlock... But it works with right clicking the block manually - So maybe 0 means infinite? I'm not really sure... --- .../containers/impl/FabledSkyBlockImplementation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epichoppers/containers/impl/FabledSkyBlockImplementation.java b/src/main/java/com/songoda/epichoppers/containers/impl/FabledSkyBlockImplementation.java index a72abac..07c148e 100644 --- a/src/main/java/com/songoda/epichoppers/containers/impl/FabledSkyBlockImplementation.java +++ b/src/main/java/com/songoda/epichoppers/containers/impl/FabledSkyBlockImplementation.java @@ -35,7 +35,7 @@ public class FabledSkyBlockImplementation implements IContainer { } stackable.addOne(); - if (stackable.isMaxSize()) { + if (stackable.getMaxSize() > 0 && stackable.isMaxSize()) { stackable.setSize(stackable.getMaxSize()); return false; }