Thanks for all the null, Mojang

Fixes #37
This commit is contained in:
Jeremy Diamond committed 2015-09-16 18:35:33 -07:00
1 parent 1ce374d441
commit 4f763cac6e
1 file changed
+5 -3
@@ -257,8 +257,10 @@ public class LudicrousEvents {
event.newSpeed *= 5;
if(!event.entityPlayer.isInsideOfMaterial(Material.water) && !EnchantmentHelper.getAquaAffinityModifier(event.entityPlayer))
event.newSpeed *= 5;
if(held.getTagCompound().getBoolean("hammer") || held.getTagCompound().getBoolean("destroyer")) {
event.newSpeed *= 0.5;
if(held.getTagCompound() != null) {
if (held.getTagCompound().getBoolean("hammer") || held.getTagCompound().getBoolean("destroyer")) {
event.newSpeed *= 0.5;
}
}
}
}
@@ -269,7 +271,7 @@ public class LudicrousEvents {
if(event.entityPlayer.getHeldItem() != null){
ItemStack held = event.entityPlayer.getHeldItem();
if(held.getItem() == LudicrousItems.infinity_shovel && event.block.getMaterial() == Material.rock){
if(held.getTagCompound().getBoolean("destroyer") && isGarbageBlock(event.block))
if(held.getTagCompound() != null && held.getTagCompound().getBoolean("destroyer") && isGarbageBlock(event.block))
event.success = true;
}
}