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)
{
if (!isAtVorkath())
if (!isAtVorkath() || vorkath == null)
{
return;
}
@@ -411,6 +411,11 @@ public class VorkathPlugin extends Plugin
{
acidFreePath.clear();
if (vorkath == null)
{
return;
}
final int[][][] directions = {
{
{0, 1}, {0, -1} // Positive and negative Y