Skip to content

Commit

Permalink
Change HILE and MFE
Browse files Browse the repository at this point in the history
  • Loading branch information
FourIsTheNumber committed Feb 9, 2025
1 parent d7dff39 commit a407b7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyMulti;
import tectech.thing.metaTileEntity.hatch.MTEHatchEnergyTunnel;

public abstract class MTEMultiBlockBase extends MetaTileEntity
implements IControllerWithOptionalFeatures, IAddGregtechLogo, IAddUIWidgets, IBindPlayerInventoryUI {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static String buildMagnetTooltip(MagnetTiers m) {
'B',
ofChain(
buildHatchAdder(MTEIndustrialElectromagneticSeparator.class)
.atLeast(InputBus, OutputBus, Maintenance, Energy.or(ExoticEnergy))
.atLeast(InputBus, OutputBus, Maintenance, Energy.or(MultiAmpEnergy))
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(0))
.dot(1)
.buildAndChain(
Expand Down Expand Up @@ -259,12 +259,10 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
if (mCasingAmount < MIN_CASING) return false;
if (mMagHatch == null) return false;

// If there are exotic hatches, ensure there is only 1, and it is not laser. Only multiamp allowed
// If there are exotic hatches, ensure there is only 1.
if (!mExoticEnergyHatches.isEmpty()) {
if (!mEnergyHatches.isEmpty()) return false;
if (mExoticEnergyHatches.size() > 1) return false;
return mExoticEnergyHatches.get(0)
.maxWorkingAmperesIn() <= 64;
return (mExoticEnergyHatches.size() == 1);
}

// All checks passed!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class MTEIndustrialLaserEngraver extends MTEExtendedPowerMultiBlockBase<M
.addElement(
'a',
buildHatchAdder(MTEIndustrialLaserEngraver.class)
.atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, ExoticEnergy)
.atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy, MultiAmpEnergy)
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(1))
.dot(1)
.buildAndChain(
Expand Down Expand Up @@ -304,13 +304,11 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a
if (laserSource == null) return false;
if (!findLaserRenderer(base.getWorld(), base.getXCoord(), base.getYCoord(), base.getZCoord())) return false;

// If there are exotic hatches, ensure there is only 1, and it is not laser. Only multiamp allowed
// If there are exotic hatches, ensure there is only 1 and that the laser source requirement is met
if (!mExoticEnergyHatches.isEmpty()) {
if (laserSource.mTier < VoltageIndex.UEV) return false;
if (!mEnergyHatches.isEmpty()) return false;
if (mExoticEnergyHatches.size() > 1) return false;
return mExoticEnergyHatches.get(0)
.maxWorkingAmperesIn() <= 64;
return (mExoticEnergyHatches.size() == 1);
}

return glassTier >= VoltageIndex.UMV || laserSource.mTier <= glassTier;
Expand Down

0 comments on commit a407b7d

Please sign in to comment.