From 7a799f4047640ca297d2d95559a4a2aa42567ff3 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 8 Aug 2022 18:02:12 -0400 Subject: [PATCH] Fixes creatures not respawning. --- Source/Game/Maps/Map.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/Maps/Map.cs b/Source/Game/Maps/Map.cs index 66be1c41f..839770729 100644 --- a/Source/Game/Maps/Map.cs +++ b/Source/Game/Maps/Map.cs @@ -2148,6 +2148,7 @@ namespace Game.Maps { // if yes, respawn will be handled by (external) pooling logic, just delete the respawn time // step 1: remove entry from maps to avoid it being reachable by outside logic _respawnTimes.Remove(next); + GetRespawnMapForType(next.type).Remove(next.spawnId); // step 2: tell pooling logic to do its thing Global.PoolMgr.UpdatePool(GetPoolData(), poolId, next.type, next.spawnId); @@ -2160,6 +2161,7 @@ namespace Game.Maps { // ok, respawn // step 1: remove entry from maps to avoid it being reachable by outside logic _respawnTimes.Remove(next); + GetRespawnMapForType(next.type).Remove(next.spawnId); // step 2: do the respawn, which involves external logic DoRespawn(next.type, next.spawnId, next.gridId);