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

Commit

Permalink
Simplify Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers committed Oct 20, 2023
1 parent 5bb9f59 commit f19f2bb
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,9 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
.addElement('r', Maintenance.newAny(CASING_INDEX, 2))
.addElement(
'e',
ofChain(
ofBlock(GregTech_API.sBlockCasings8, 0),
buildHatchAdder(GT_TileEntity_MegaChemicalReactor.class)
.anyOf(InputBus, InputHatch, OutputBus, OutputHatch).casingIndex(CASING_INDEX)
.dot(3).build(),
buildHatchAdder(GT_TileEntity_MegaChemicalReactor.class).atLeast(Energy.or(ExoticEnergy))
.casingIndex(CASING_INDEX).dot(3).build()))
buildHatchAdder(GT_TileEntity_MegaChemicalReactor.class)
.atLeast(Energy.or(ExoticEnergy), InputHatch, InputBus, OutputHatch, OutputBus)
.casingIndex(CASING_INDEX).dot(3).buildAndChain(GregTech_API.sBlockCasings8, 0))
.addElement('c', ofChain(ofBlock(GregTech_API.sBlockCasings4, 7), ofBlock(GregTech_API.sBlockCasings5, 13)))
.addElement(
'g',
Expand Down

0 comments on commit f19f2bb

Please sign in to comment.