From f76ac0efcf0b07f2e0cc750af5a18394f0cc4405 Mon Sep 17 00:00:00 2001 From: Player Name Date: Sun, 28 Jun 2026 17:58:58 +0200 Subject: [PATCH] Allow poofClear to cope with regions not being loaded, preventing the anim from being queued until somebody enters the region --- .../wilderness/handlers/revenants/RevenantController.kt | 4 +++- Server/src/main/core/api/ContentAPI.kt | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Server/src/main/content/region/wilderness/handlers/revenants/RevenantController.kt b/Server/src/main/content/region/wilderness/handlers/revenants/RevenantController.kt index fed2f91ec..2ccfbb61c 100644 --- a/Server/src/main/content/region/wilderness/handlers/revenants/RevenantController.kt +++ b/Server/src/main/content/region/wilderness/handlers/revenants/RevenantController.kt @@ -372,7 +372,9 @@ class RevenantController : TickListener, Commands { if (routeIdx == -1) { GameWorld.Pulser.submit(object : Pulse() { override fun pulse(): Boolean { - Graphics.send(Graphics(86), revenantNPC.location) + if (revenantNPC.location.region.isActive) { + Graphics.send(Graphics(86), revenantNPC.location) + } return true } }) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index 6e905d67a..7e1d6f813 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -541,7 +541,10 @@ fun poofClear(npc: NPC) { override fun pulse(): Boolean { when (counter++) { 2 -> { - npc.isInvisible = true; Graphics.send(Graphics(86), npc.location) + npc.isInvisible = true; + if (npc.location.region.isActive) { + Graphics.send(Graphics(86), npc.location) + } } 3 -> npc.clear().also { return true } }