Addition of Instance getAliveNpcCount methods.

This commit is contained in:
MobiusDevelopment
2021-12-25 23:04:14 +00:00
parent 9e7f8fbba7
commit 33b35efb3c
196 changed files with 2052 additions and 1317 deletions

View File

@@ -289,7 +289,7 @@ public class TranscendentZone extends AbstractInstance
final ScheduledFuture<?> spawnTask = ThreadPool.scheduleAtFixedRate(() ->
{
if (!instance.getParameters().getBoolean("PlayerIsOut", false) && (instance.getAliveNpcs().size() == 1))
if (!instance.getParameters().getBoolean("PlayerIsOut", false) && (instance.getAliveNpcCount() == 1))
{
if (Rnd.get(5) == 0)
{