From d3b3c0ec609078fdd60e885e5f0bd1d1bd66bec4 Mon Sep 17 00:00:00 2001 From: ceikry Date: Thu, 29 Jul 2021 11:38:19 -0500 Subject: [PATCH] Fixed an issue with random event NPCs not terminating properly sometimes --- Server/src/main/kotlin/rs09/game/content/ame/RandomEventNPC.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/content/ame/RandomEventNPC.kt b/Server/src/main/kotlin/rs09/game/content/ame/RandomEventNPC.kt index f82d75100..175c67199 100644 --- a/Server/src/main/kotlin/rs09/game/content/ame/RandomEventNPC.kt +++ b/Server/src/main/kotlin/rs09/game/content/ame/RandomEventNPC.kt @@ -73,9 +73,9 @@ abstract class RandomEventNPC(id: Int) : NPC(id) { } override fun init() { + initialized = true spawnLocation ?: terminate() location = spawnLocation - initialized = true super.init() }