aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/common/CommonProxy.java
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-05-14 11:26:19 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-05-14 11:26:19 +1000
commit7cf3349898a30dd7809c7d8051b1d9c318e27bf1 (patch)
tree38aee37b3e09835b89322c38a894ca18cae48db2 /src/Java/gtPlusPlus/core/common/CommonProxy.java
parent9487e78564ff2a729bc5d6787b5326665e4780be (diff)
downloadGT5-Unofficial-7cf3349898a30dd7809c7d8051b1d9c318e27bf1.tar.gz
GT5-Unofficial-7cf3349898a30dd7809c7d8051b1d9c318e27bf1.tar.bz2
GT5-Unofficial-7cf3349898a30dd7809c7d8051b1d9c318e27bf1.zip
$ Fixed NPE when Thermal Foundation existed.
^ Version Bump.
Diffstat (limited to 'src/Java/gtPlusPlus/core/common/CommonProxy.java')
-rw-r--r--src/Java/gtPlusPlus/core/common/CommonProxy.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/common/CommonProxy.java b/src/Java/gtPlusPlus/core/common/CommonProxy.java
index 6058d03b80..03b0f944b7 100644
--- a/src/Java/gtPlusPlus/core/common/CommonProxy.java
+++ b/src/Java/gtPlusPlus/core/common/CommonProxy.java
@@ -249,9 +249,12 @@ public class CommonProxy {
EntityUtils.registerDropsForMob(EntityZombie.class, ALLOY.TUMBAGA.getTinyDust(1), 1, 10);
EntityUtils.registerDropsForMob(EntityZombie.class, ALLOY.POTIN.getTinyDust(1), 1, 10);
- //Blazes
- EntityUtils.registerDropsForMob(EntityBlaze.class, ItemUtils.getSimpleStack(TF_Items.dustPyrotheum, 1), 1, 10);
- EntityUtils.registerDropsForMob(EntityBlaze.class, ItemUtils.getSimpleStack(TF_Items.dustPyrotheum, 1), 1, 10);
+ //Blazes
+ if (ItemUtils.doesOreDictHaveEntryFor("dustPyrotheum")) {
+ EntityUtils.registerDropsForMob(EntityBlaze.class, ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1), 1, 10);
+ EntityUtils.registerDropsForMob(EntityBlaze.class, ItemUtils.getItemStackOfAmountFromOreDict("dustPyrotheum", 1), 1, 10);
+ }
+
//Special mobs Support
if (ReflectionUtils.doesClassExist("toast.specialMobs.entity.zombie.EntityBrutishZombie")) {