vorkath: NPE checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user