From a4b54919b92522d03fdcc572d81bc2ab91a3108b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 21 Jul 2016 23:50:09 +0200 Subject: [PATCH] What the fuck, darkhax!? --- .../ellpeck/actuallyadditions/mod/tile/TileEntityBase.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java index bac9eb3ee..45241bb3b 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java @@ -33,6 +33,7 @@ import net.minecraft.world.World; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.fluids.capability.CapabilityFluidHandler; import net.minecraftforge.fluids.capability.IFluidHandler; +import net.minecraftforge.fml.common.Loader; import net.minecraftforge.fml.common.ModAPIManager; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; @@ -106,12 +107,12 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{ register(TileEntityDisplayStand.class, "DisplayStand"); register(TileEntityShockSuppressor.class, "ShockSuppressor"); - if(ModAPIManager.INSTANCE.hasAPI("Tesla|API")){ - ModUtil.LOGGER.info("Tesla API loaded... Activating Tesla Power System integration..."); + if(Loader.isModLoaded("Tesla")){ + ModUtil.LOGGER.info("Tesla loaded... Activating Tesla Power System integration..."); teslaLoaded = true; } else{ - ModUtil.LOGGER.info("Tesla API not found! Skipping Tesla Power System integration."); + ModUtil.LOGGER.info("Tesla not found! Skipping Tesla Power System integration."); } }