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