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...
This commit is contained in:
Christian Koop 2023-03-31 21:26:55 +02:00
parent 4a8aefbf92
commit 4fefd312bd
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -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;
}