aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2017-08-21 09:46:32 +0200
committerTechnus <daniel112092@gmail.com>2017-08-21 09:46:51 +0200
commit2d0bbc19c3d0964d5bc5f192bdd8f5b7ff8b734f (patch)
treeeda8bd1c09bbd98703cc9dd7c117b911428e75b0 /src/main
parent5022a95e72ff1594b9754a3969573e61419b1b62 (diff)
downloadGT5-Unofficial-2d0bbc19c3d0964d5bc5f192bdd8f5b7ff8b734f.tar.gz
GT5-Unofficial-2d0bbc19c3d0964d5bc5f192bdd8f5b7ff8b734f.tar.bz2
GT5-Unofficial-2d0bbc19c3d0964d5bc5f192bdd8f5b7ff8b734f.zip
Missing loader check
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/technus/tectech/loader/EntityLoader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/github/technus/tectech/loader/EntityLoader.java b/src/main/java/com/github/technus/tectech/loader/EntityLoader.java
index f77312850c..389238e6c6 100644
--- a/src/main/java/com/github/technus/tectech/loader/EntityLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/EntityLoader.java
@@ -1,6 +1,7 @@
package com.github.technus.tectech.loader;
import com.github.technus.tectech.TecTech;
+import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.EntityRegistry;
import openmodularturrets.entity.projectiles.projectileEM;
@@ -10,6 +11,7 @@ import openmodularturrets.entity.projectiles.projectileEM;
public class EntityLoader implements Runnable {
@Override
public void run() {
- EntityRegistry.registerModEntity(projectileEM.class, "projectileEM", 0, TecTech.instance, 16, 5, true);
+ if(Loader.isModLoaded("openmodularturrets"))
+ EntityRegistry.registerModEntity(projectileEM.class, "projectileEM", 0, TecTech.instance, 16, 5, true);
}
}