|
18 | 18 |
|
19 | 19 | import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader; |
20 | 20 | 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; |
21 | 22 | import com.gtnewhorizon.structurelib.alignment.constructable.IConstructable; |
22 | 23 | import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable; |
23 | 24 | import com.gtnewhorizon.structurelib.structure.IItemSource; |
@@ -79,9 +80,19 @@ public boolean checkMachine_EM(IGregTechTileEntity aBaseMetaTileEntity, ItemStac |
79 | 80 | mEssentiaHatch.clear(); |
80 | 81 | return structureCheck_EM(mName, 4, 0, 4) && (mDynamoHatches.size() + eDynamoMulti.size()) == 1 |
81 | 82 | && checkHatchTier() |
| 83 | + && checkNoLaser() |
82 | 84 | && updateEssentiaHatchState(); |
83 | 85 | } |
84 | 86 |
|
| 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 | + |
85 | 96 | public boolean checkHatchTier() { |
86 | 97 | for (GT_MetaTileEntity_Hatch_Input tHatch : mInputHatches) { |
87 | 98 | if (tHatch.mTier > mTierLimit) return false; |
@@ -479,8 +490,9 @@ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { |
479 | 490 | protected GT_Multiblock_Tooltip_Builder createTooltip() { |
480 | 491 | final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); |
481 | 492 | 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!") |
483 | 494 | .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.") |
484 | 496 | .addInfo("You can find more information about this generator in the Thaumonomicon.") |
485 | 497 | .addInfo("The structure is too complex!").addInfo(BLUE_PRINT_INFO).addSeparator() |
486 | 498 | .addMaintenanceHatch("Hint block with dot 1").addInputHatch("Hint block with dot 1") |
|
0 commit comments