Merge pull request #1957 from Owain94/vorkath

vorkath: NPE checks
This commit is contained in:
Owain van Brakel
2019-11-08 08:23:33 +01:00
committed by GitHub

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