aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtnhlanth/common/tileentity/MTELINAC.java')
-rw-r--r--src/main/java/gtnhlanth/common/tileentity/MTELINAC.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java b/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java
index 94571d10e0..b7902c5d24 100644
--- a/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java
+++ b/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java
@@ -180,7 +180,8 @@ public class MTELINAC extends MTEEnhancedMultiBlockBase<MTELINAC> implements ISu
.addInfo("Controller block for the LINAC")
.addInfo("Accelerates charged particles to higher energies")
.addInfo("Increasing length increases output energy, but decreases focus")
- .addInfo("Use a lower temperature coolant to improve focus")
+ .addInfo("Use a lower temperature coolant to improve output focus")
+ .addInfo("Output energy does not scale for input energies higher than 7500 keV")
// .addInfo("Extendable, with a minimum length of 18 blocks")
.addInfo(DescTextLocalization.BLUEPRINT_INFO)
.addInfo(DescTextLocalization.BEAMLINE_SCANNER_INFO)
@@ -347,6 +348,8 @@ public class MTELINAC extends MTEEnhancedMultiBlockBase<MTELINAC> implements ISu
inputEnergy = this.getInputInformation()
.getEnergy();
+
+ inputEnergy = Math.min(inputEnergy, 7500); // Does not scale past 7500 keV, prevents double LINAC issue
/*
* outputEnergy = Math.min(
* (1 + inputEnergy / Particle.getParticleFromId(outputParticle)