aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ggfab
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2024-10-11 17:42:05 +0800
committerGitHub <noreply@github.com>2024-10-11 11:42:05 +0200
commit6df708f0f7189c378b926d6bcb06d1953eeefed4 (patch)
treea64d1bbc9af6fa3e730b240b77c3aa4d30f07375 /src/main/java/ggfab
parente795b8af5b363a4e2b6b99d9014639ed72c86be7 (diff)
downloadGT5-Unofficial-6df708f0f7189c378b926d6bcb06d1953eeefed4.tar.gz
GT5-Unofficial-6df708f0f7189c378b926d6bcb06d1953eeefed4.tar.bz2
GT5-Unofficial-6df708f0f7189c378b926d6bcb06d1953eeefed4.zip
fix adv assline not respecting gt_no_hatch for energy hatches (#3353)
Diffstat (limited to 'src/main/java/ggfab')
-rw-r--r--src/main/java/ggfab/mte/MTEAdvAssLine.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/ggfab/mte/MTEAdvAssLine.java b/src/main/java/ggfab/mte/MTEAdvAssLine.java
index dd579021a2..5d89311a37 100644
--- a/src/main/java/ggfab/mte/MTEAdvAssLine.java
+++ b/src/main/java/ggfab/mte/MTEAdvAssLine.java
@@ -153,10 +153,11 @@ public class MTEAdvAssLine extends MTEExtendedPowerMultiBlockBase<MTEAdvAssLine>
ofBlockUnlocalizedName("Thaumcraft", "blockCosmeticOpaque", 2, false)))
.addElement(
'e',
- ofChain(
- Energy.or(ExoticEnergy)
- .newAny(16, 1, ForgeDirection.UP, ForgeDirection.NORTH, ForgeDirection.SOUTH),
- ofBlock(GregTechAPI.sBlockCasings2, 0)))
+ buildHatchAdder(MTEAdvAssLine.class).anyOf(Energy, ExoticEnergy)
+ .dot(1)
+ .casingIndex(16)
+ .allowOnly(ForgeDirection.UP, ForgeDirection.NORTH, ForgeDirection.SOUTH)
+ .buildAndChain(ofBlock(GregTechAPI.sBlockCasings2, 0)))
.addElement(
'd',
buildHatchAdder(MTEAdvAssLine.class).atLeast(DataHatchElement.DataAccess)