Skip to content

Commit

Permalink
Allow maintenance hatch on layer 2 of DT
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg committed Jan 10, 2025
1 parent 8ea89ab commit abf7719
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,20 +438,27 @@ public class GTMultiMachines {
.appearanceBlock(CASING_STAINLESS_CLEAN)
.pattern(definition -> {
TraceabilityPredicate exportPredicate = abilities(PartAbility.EXPORT_FLUIDS_1X);
if (GTCEu.Mods.isAE2Loaded())
if (GTCEu.Mods.isAE2Loaded()) {
exportPredicate = exportPredicate.or(blocks(GTAEMachines.FLUID_EXPORT_HATCH_ME.get()));
}
exportPredicate.setMaxLayerLimited(1);
TraceabilityPredicate maint = autoAbilities(true, false, false)
.setMaxGlobalLimited(1);
return FactoryBlockPattern.start(RIGHT, BACK, UP)
.aisle("YSY", "YYY", "YYY")
.aisle("XXX", "X#X", "XXX").setRepeatable(1, 11)
.aisle("ZZZ", "Z#Z", "ZZZ")
.aisle("XXX", "X#X", "XXX").setRepeatable(0, 10)
.aisle("XXX", "XXX", "XXX")
.where('S', Predicates.controller(blocks(definition.getBlock())))
.where('Y', blocks(CASING_STAINLESS_CLEAN.get())
.or(Predicates.abilities(PartAbility.EXPORT_ITEMS).setMaxGlobalLimited(1))
.or(Predicates.abilities(PartAbility.INPUT_ENERGY).setMinGlobalLimited(1)
.setMaxGlobalLimited(2))
.or(Predicates.abilities(PartAbility.IMPORT_FLUIDS).setExactLimit(1))
.or(autoAbilities(true, false, false)))
.or(maint))
.where('Z', blocks(CASING_STAINLESS_CLEAN.get())
.or(exportPredicate)
.or(maint))
.where('X', blocks(CASING_STAINLESS_CLEAN.get()).or(exportPredicate))
.where('#', Predicates.air())
.build();
Expand Down

0 comments on commit abf7719

Please sign in to comment.