diff options
author | Technus <daniel112092@gmail.com> | 2017-08-21 09:46:32 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-08-21 09:46:51 +0200 |
commit | 2d0bbc19c3d0964d5bc5f192bdd8f5b7ff8b734f (patch) | |
tree | eda8bd1c09bbd98703cc9dd7c117b911428e75b0 /src/main | |
parent | 5022a95e72ff1594b9754a3969573e61419b1b62 (diff) | |
download | GT5-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.java | 4 |
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); } } |