Fixed probable Fallen Emperor's Throne NPE.

This commit is contained in:
MobiusDevelopment 2021-05-31 11:05:22 +00:00
parent 086459920b
commit 7f2fd6cdcf
2 changed files with 2 additions and 4 deletions

View File

@ -91,8 +91,7 @@ public class FallenEmperorsThrone extends AbstractInstance
case "beginning":
{
final Instance world = player.getInstanceWorld();
final boolean SPAWNED = world.getParameters().getBoolean("SPAWNED", false);
if (isInInstance(world) && !SPAWNED)
if (isInInstance(world) && !world.getParameters().getBoolean("SPAWNED", false))
{
world.getParameters().set("SPAWNED", true);
world.spawnGroup("FE_HELIOS1");

View File

@ -91,8 +91,7 @@ public class FallenEmperorsThrone extends AbstractInstance
case "beginning":
{
final Instance world = player.getInstanceWorld();
final boolean SPAWNED = world.getParameters().getBoolean("SPAWNED", false);
if (isInInstance(world) && !SPAWNED)
if (isInInstance(world) && !world.getParameters().getBoolean("SPAWNED", false))
{
world.getParameters().set("SPAWNED", true);
world.spawnGroup("FE_HELIOS1");