[BUGFIX] Fixed NPE in IceSpike

* Error:
http://www.projectkorra.com/threads/errorstacks-cause-pastebin-deletes.361/#post-3089
This commit is contained in:
jack lin 2014-08-30 21:48:27 +12:00
parent c833a1ad52
commit 6b03c92cfb

View file

@ -187,13 +187,14 @@ public class IceSpike {
moveEarth();
removeTimers.put(player, System.currentTimeMillis());
} else {
if (removeTimers.contains(player)) {
if (removeTimers.get(player) + removeTimer <= System.currentTimeMillis()) {
baseblocks.put(location.clone().add(direction.clone().multiply(-1 * (height))).getBlock(),(height - 1));
if (!revertblocks()) {
instances.remove(id);
}
}
}
return false;
}
}