Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 7420285

Browse files
authored
Remove laser support for LEG (#168)
* no magic lasers * update BS * better tooltip
1 parent 3c7415e commit 7420285

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1684218858
1+
//version: 1685785062
22
/*
33
DO NOT CHANGE THIS FILE!
44
Also, you may replace this file at any time if there is an update available.
@@ -1276,12 +1276,14 @@ tasks.register('faq') {
12761276
description = 'Prints frequently asked questions about building a project'
12771277

12781278
doLast {
1279-
print("If your build fails to fetch dependencies, they might have been deleted and replaced by newer " +
1280-
"versions.\nCheck if the versions you try to fetch are still on the distributing sites.\n" +
1281-
"The links can be found in repositories.gradle and build.gradle:repositories, " +
1282-
"not build.gradle:buildscript.repositories - this one is for gradle plugin metadata.\n\n" +
1279+
print("If your build fails to fetch dependencies, run './gradlew updateDependencies'. " +
1280+
"Or you can manually check if the versions are still on the distributing sites - " +
1281+
"the links can be found in repositories.gradle and build.gradle:repositories, " +
1282+
"but not build.gradle:buildscript.repositories - those ones are for gradle plugin metadata.\n\n" +
12831283
"If your build fails to recognize the syntax of new Java versions, enable Jabel in your " +
1284-
"gradle.properties. See how it's done in GTNH ExampleMod/gradle.properties.")
1284+
"gradle.properties. See how it's done in GTNH ExampleMod/gradle.properties. " +
1285+
"However, keep in mind that Jabel enables only syntax features, but not APIs that were introduced in " +
1286+
"Java 9 or later.")
12851287
}
12861288
}
12871289

src/main/java/goodgenerator/blocks/tileEntity/LargeEssentiaGenerator.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader;
2020
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti;
21+
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoTunnel;
2122
import com.gtnewhorizon.structurelib.alignment.constructable.IConstructable;
2223
import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
2324
import com.gtnewhorizon.structurelib.structure.IItemSource;
@@ -79,9 +80,19 @@ public boolean checkMachine_EM(IGregTechTileEntity aBaseMetaTileEntity, ItemStac
7980
mEssentiaHatch.clear();
8081
return structureCheck_EM(mName, 4, 0, 4) && (mDynamoHatches.size() + eDynamoMulti.size()) == 1
8182
&& checkHatchTier()
83+
&& checkNoLaser()
8284
&& updateEssentiaHatchState();
8385
}
8486

87+
private boolean checkNoLaser() {
88+
for (GT_MetaTileEntity_Hatch_DynamoMulti tHatch : eDynamoMulti) {
89+
if (tHatch instanceof GT_MetaTileEntity_Hatch_DynamoTunnel) {
90+
return false;
91+
}
92+
}
93+
return true;
94+
}
95+
8596
public boolean checkHatchTier() {
8697
for (GT_MetaTileEntity_Hatch_Input tHatch : mInputHatches) {
8798
if (tHatch.mTier > mTierLimit) return false;
@@ -479,8 +490,9 @@ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
479490
protected GT_Multiblock_Tooltip_Builder createTooltip() {
480491
final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
481492
tt.addMachineType("Essentia Generator").addInfo("Controller block for the Large Essentia Generator")
482-
.addInfo("Maybe some thaumaturages are upset by it. . .").addInfo("Transform essentia into energy!")
493+
.addInfo("Maybe some Thaumaturges are upset by it. . .").addInfo("Transform Essentia into energy!")
483494
.addInfo("The Diffusion Cell determines the highest hatch tier that the LEG can accept.")
495+
.addInfo("Supports normal Dynamo Hatches or TecTech ones for up to 64A, but no Laser Hatches.")
484496
.addInfo("You can find more information about this generator in the Thaumonomicon.")
485497
.addInfo("The structure is too complex!").addInfo(BLUE_PRINT_INFO).addSeparator()
486498
.addMaintenanceHatch("Hint block with dot 1").addInputHatch("Hint block with dot 1")

0 commit comments

Comments
 (0)