Fix NPE in EarthSmash

This commit is contained in:
jedk1 2016-01-12 17:36:30 +00:00
parent 091f381def
commit 4ba58e6072

View file

@ -503,6 +503,9 @@ public class EarthSmash {
for (EarthSmash smash : instances) {
if (reqState == null || smash.state == reqState)
for (Block block : blocks) {
if (block == null || smash.loc == null) {
continue;
}
if (block.getLocation().getWorld() == smash.loc.getWorld() && block.getLocation().distanceSquared(smash.loc) <= Math.pow(2.5, 2))
return smash;
}