diff options
author | Technus <daniel112092@gmail.com> | 2017-08-21 09:46:32 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-08-21 09:46:32 +0200 |
commit | d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7 (patch) | |
tree | 7d74f504bbe37895149c73b572cb6c236df8cdcd /src | |
parent | b50eeed3aaed2b9d4921d4cab064d9875d4d3c82 (diff) | |
download | GT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.tar.gz GT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.tar.bz2 GT5-Unofficial-d026cbb7aa0f2d6a4272ca96dfcb29be4d5150c7.zip |
Missing loader check
Diffstat (limited to 'src')
-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); } } |