Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
compact fusion autobuild fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Feb 6, 2024
1 parent 7286cb7 commit a9950e7
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
import static gregtech.api.enums.Textures.BlockIcons.*;
import static gregtech.api.util.GT_StructureUtility.filterByMTETier;
import static gregtech.api.util.GT_StructureUtility.ofFrame;
import static gregtech.api.util.GT_Utility.filterValidMTEs;

Expand Down Expand Up @@ -82,17 +83,20 @@ protected IStructureDefinition<LargeFusionComputer> computeValue(Class<?> type)
lazy(
x -> GT_HatchElementBuilder.<LargeFusionComputer>builder()
.atLeast(
GT_HatchElement.InputHatch,
GT_HatchElement.OutputHatch,
GT_HatchElement.InputBus)
GT_HatchElement.InputHatch.or(GT_HatchElement.InputBus),
GT_HatchElement.OutputHatch)
.adder(LargeFusionComputer::addFluidIO).casingIndex(x.textureIndex()).dot(1)
.hatchItemFilterAnd(
x2 -> filterByMTETier(x2.hatchTier(), Integer.MAX_VALUE))
.buildAndChain(x.getGlassBlock(), x.getGlassMeta())))
.addElement(
'E',
lazy(
x -> GT_HatchElementBuilder.<LargeFusionComputer>builder()
.atLeast(HatchElement.EnergyMulti.or(GT_HatchElement.Energy))
.anyOf(HatchElement.EnergyMulti.or(GT_HatchElement.Energy))
.adder(LargeFusionComputer::addEnergyInjector).casingIndex(x.textureIndex())
.hatchItemFilterAnd(
x2 -> filterByMTETier(x2.hatchTier(), Integer.MAX_VALUE))
.dot(2).buildAndChain(x.getCasingBlock(), x.getCasingMeta())))
.addElement('F', lazy(x -> ofFrame(x.getFrameBox()))).build();
}
Expand Down

0 comments on commit a9950e7

Please sign in to comment.