Store the lowest bottom parent in a compacting drawer to the calculation properly later, closes #25

This commit is contained in:
Buuz135 2022-04-04 11:34:26 +02:00
parent e195b58d88
commit ed17939eba
2 changed files with 8 additions and 1 deletions

View File

@ -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"

View File

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