mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
try to kill spawners, they don't exist?
This commit is contained in:
parent
3dc7b6ef7f
commit
6e07798023
@ -35,9 +35,8 @@ void VanityUtilities::SpawnVanity() {
|
||||
for (auto& npc : m_NPCs) {
|
||||
if (npc.m_ID == LWOOBJID_EMPTY) continue;
|
||||
if (npc.m_LOT == 176){
|
||||
auto* spawner = Game::zoneManager->GetSpawner(npc.m_ID);
|
||||
if (!spawner) continue;
|
||||
Game::zoneManager->RemoveSpawner(spawner->m_Info.spawnerID);
|
||||
LOG("Removing spawner %llu", npc.m_ID);
|
||||
Game::zoneManager->RemoveSpawner(npc.m_ID);
|
||||
}
|
||||
auto* entity = Game::entityManager->GetEntity(npc.m_ID);
|
||||
if (!entity) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user