mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-16 20:01:42 +01:00
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:
parent
4a8aefbf92
commit
4fefd312bd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user