diff options
author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-09-03 22:36:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 20:36:50 +0000 |
commit | 4f33caf2586097daa253d76ce996f9fca4e10cc3 (patch) | |
tree | ea3a8ee2baf4c5aebdd1700b940f2373e475f626 /src/main/java/gregtech/common/tileentities/machines/multi | |
parent | a881bdb42c695433174342125696213e582e78fc (diff) | |
download | GT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.tar.gz GT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.tar.bz2 GT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.zip |
replace Loader.isModLoaded() calls with Mods enum cached call (#3031)
* replace Loader.isModLoaded() calls with Mods enum cached call
* prevent Loader.isModLoaded calls
* Revert "prevent Loader.isModLoaded calls"
This reverts commit 9df23fd8db9dfe70a16be10e1d8688ee629da054.
* no Loader.isModLoaded calls in gagreg
---------
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines/multi')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/MTEPCBFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEPCBFactory.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEPCBFactory.java index b2d20b9745..e7221ef4e1 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEPCBFactory.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEPCBFactory.java @@ -58,9 +58,9 @@ import com.gtnewhorizons.modularui.common.widget.TextWidget; import com.gtnewhorizons.modularui.common.widget.textfield.NumericWidget; import blockrenderer6343.client.world.ClientFakePlayer; -import cpw.mods.fml.common.Loader; import gregtech.api.GregTechAPI; import gregtech.api.enums.Materials; +import gregtech.api.enums.Mods; import gregtech.api.enums.OrePrefixes; import gregtech.api.enums.SoundResource; import gregtech.api.enums.Textures.BlockIcons; @@ -315,7 +315,7 @@ public class MTEPCBFactory extends MTEExtendedPowerMultiBlockBase<MTEPCBFactory> public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) { if (mMachine) return -1; int built = 0; - if (Loader.isModLoaded("blockrenderer6343") && env.getActor() instanceof ClientFakePlayer) { + if (Mods.BlockRenderer6343.isModLoaded() && env.getActor() instanceof ClientFakePlayer) { if (stackSize.stackSize < 3) { built += survivialBuildPiece(tier1, stackSize, 3, 5, 0, elementBudget, env, false, false); if (stackSize.stackSize == 2) { |