aboutsummaryrefslogtreecommitdiff
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:32 +0200
commitd026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7 (patch)
tree7d74f504bbe37895149c73b572cb6c236df8cdcd
parentb50eeed3aaed2b9d4921d4cab064d9875d4d3c82 (diff)
downloadGT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.tar.gz
GT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.tar.bz2
GT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.zip
Missing loader check
-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);
}
}