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();
|
moveEarth();
|
||||||
removeTimers.put(player, System.currentTimeMillis());
|
removeTimers.put(player, System.currentTimeMillis());
|
||||||
} else {
|
} else {
|
||||||
if (removeTimers.get(player) + removeTimer <= System.currentTimeMillis()) {
|
if (removeTimers.contains(player)) {
|
||||||
baseblocks.put(location.clone().add(direction.clone().multiply(-1 * (height))).getBlock(),(height - 1));
|
if (removeTimers.get(player) + removeTimer <= System.currentTimeMillis()) {
|
||||||
if (!revertblocks()) {
|
baseblocks.put(location.clone().add(direction.clone().multiply(-1 * (height))).getBlock(),(height - 1));
|
||||||
instances.remove(id);
|
if (!revertblocks()) {
|
||||||
|
instances.remove(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue