Skip to content

Commit 762d2c0

Browse files
authored
Allow fusion glass to replace output buses/energy hatches (#2129)
1 parent 60fb7e7 commit 762d2c0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/gregtech/common/metatileentities/multi/electric/MetaTileEntityFusionReactor.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ protected BlockPattern createStructurePattern() {
105105
.aisle("######ICI######", "####GGAAAGG####", "######ICI######")
106106
.aisle("###############", "######OSO######", "###############")
107107
.where('S', selfPredicate())
108-
.where('G', states(MetaBlocks.TRANSPARENT_CASING.getState(BlockGlassCasing.CasingType.FUSION_GLASS)).or(states(getCasingState())))
109-
.where('E', states(getCasingState()).or(metaTileEntities(Arrays.stream(MetaTileEntities.ENERGY_INPUT_HATCH)
108+
.where('G', states(getCasingState(), getGlassState()))
109+
.where('E', states(getCasingState(), getGlassState()).or(metaTileEntities(Arrays.stream(MetaTileEntities.ENERGY_INPUT_HATCH)
110110
.filter(mte -> mte != null && tier <= mte.getTier() && mte.getTier() <= GTValues.UV)
111111
.toArray(MetaTileEntity[]::new))
112112
.setMinGlobalLimited(1).setPreviewCount(16)))
113113
.where('C', states(getCasingState()))
114114
.where('K', states(getCoilState()))
115-
.where('O', states(getCasingState()).or(abilities(MultiblockAbility.EXPORT_FLUIDS)))
115+
.where('O', states(getCasingState(), getGlassState()).or(abilities(MultiblockAbility.EXPORT_FLUIDS)))
116116
.where('A', air())
117117
.where('I', states(getCasingState()).or(abilities(MultiblockAbility.IMPORT_FLUIDS).setMinGlobalLimited(2)))
118118
.where('#', any())
@@ -174,6 +174,10 @@ public ICubeRenderer getBaseTexture(IMultiblockPart sourcePart) {
174174
}
175175
}
176176

177+
private IBlockState getGlassState() {
178+
return MetaBlocks.TRANSPARENT_CASING.getState(BlockGlassCasing.CasingType.FUSION_GLASS);
179+
}
180+
177181
private IBlockState getCasingState() {
178182
if (tier == GTValues.LuV)
179183
return MetaBlocks.FUSION_CASING.getState(BlockFusionCasing.CasingType.FUSION_CASING);

0 commit comments

Comments
 (0)