diff --git a/build.gradle b/build.gradle index 184d96a..e537db6 100644 --- a/build.gradle +++ b/build.gradle @@ -97,6 +97,7 @@ dependencies { runtimeOnly fg.deobf("mezz.jei:jei-1.18.2:9.5.3.143") //runtimeOnly fg.deobf("curse.maven:refined-storage-243076:3569563") implementation fg.deobf("curse.maven:the-one-probe-245211:3671753") + //implementation fg.deobf("curse.maven:allthecompressed-514045:3723881") //runtimeOnly fg.deobf("curse.maven:create-328085:3600402") //runtimeOnly fg.deobf("curse.maven:flywheel-486392:3600401") annotationProcessor "org.spongepowered:mixin:0.8.5:processor" diff --git a/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java b/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java index 61872eb..5d6dfd5 100644 --- a/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java +++ b/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java @@ -71,7 +71,13 @@ public abstract class CompactingInventoryHandler implements IItemHandler, INBTSe public void setup(CompactingUtil compactingUtil){ this.resultList = compactingUtil.getResults(); - this.parent = compactingUtil.getResults().get(2).getResult(); + this.parent = compactingUtil.getResults().get(0).getResult(); + if (this.parent.isEmpty()) { + this.parent = compactingUtil.getResults().get(1).getResult(); + } + if (this.parent.isEmpty()) { + this.parent = compactingUtil.getResults().get(2).getResult(); + } onChange(); }