vorkath: NPE checks

This commit is contained in:
Owain van Brakel
2019-11-08 05:49:50 +01:00
parent 4e3b1ba8bb
commit e6136ccae3

View File

@@ -210,7 +210,7 @@ public class VorkathPlugin extends Plugin
private void onProjectileSpawned(ProjectileSpawned event) private void onProjectileSpawned(ProjectileSpawned event)
{ {
if (!isAtVorkath()) if (!isAtVorkath() || vorkath == null)
{ {
return; return;
} }
@@ -411,6 +411,11 @@ public class VorkathPlugin extends Plugin
{ {
acidFreePath.clear(); acidFreePath.clear();
if (vorkath == null)
{
return;
}
final int[][][] directions = { final int[][][] directions = {
{ {
{0, 1}, {0, -1} // Positive and negative Y {0, 1}, {0, -1} // Positive and negative Y