mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
[BUGFIX] Fixed NPE in IceSpike
* Error: http://www.projectkorra.com/threads/errorstacks-cause-pastebin-deletes.361/#post-3089
This commit is contained in:
parent
c833a1ad52
commit
6b03c92cfb
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue