mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
What the fuck, darkhax!?
This commit is contained in:
parent
e526c7bfd0
commit
a4b54919b9
1 changed files with 4 additions and 3 deletions
|
@ -33,6 +33,7 @@ import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.capabilities.Capability;
|
import net.minecraftforge.common.capabilities.Capability;
|
||||||
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
|
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
|
||||||
import net.minecraftforge.fluids.capability.IFluidHandler;
|
import net.minecraftforge.fluids.capability.IFluidHandler;
|
||||||
|
import net.minecraftforge.fml.common.Loader;
|
||||||
import net.minecraftforge.fml.common.ModAPIManager;
|
import net.minecraftforge.fml.common.ModAPIManager;
|
||||||
import net.minecraftforge.fml.common.network.NetworkRegistry;
|
import net.minecraftforge.fml.common.network.NetworkRegistry;
|
||||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
|
@ -106,12 +107,12 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
|
||||||
register(TileEntityDisplayStand.class, "DisplayStand");
|
register(TileEntityDisplayStand.class, "DisplayStand");
|
||||||
register(TileEntityShockSuppressor.class, "ShockSuppressor");
|
register(TileEntityShockSuppressor.class, "ShockSuppressor");
|
||||||
|
|
||||||
if(ModAPIManager.INSTANCE.hasAPI("Tesla|API")){
|
if(Loader.isModLoaded("Tesla")){
|
||||||
ModUtil.LOGGER.info("Tesla API loaded... Activating Tesla Power System integration...");
|
ModUtil.LOGGER.info("Tesla loaded... Activating Tesla Power System integration...");
|
||||||
teslaLoaded = true;
|
teslaLoaded = true;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
ModUtil.LOGGER.info("Tesla API not found! Skipping Tesla Power System integration.");
|
ModUtil.LOGGER.info("Tesla not found! Skipping Tesla Power System integration.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue