Update SlashCommandHandler.cpp

This commit is contained in:
David Markowitz 2024-04-06 22:29:10 -07:00
parent ca002c9f40
commit 9ed683d2ad

View File

@ -1977,7 +1977,12 @@ namespace DEVGMCommands {
auto newEntity = Game::entityManager->CreateEntity(info); auto newEntity = Game::entityManager->CreateEntity(info);
if (newEntity == nullptr) { if (newEntity == nullptr) {
ChatPackets::SendSystemMessage(sysAddr, u"Failed to spawn entity.");
return;
} }
Game::entityManager->ConstructEntity(newEntity);
numberToSpawn--;
} }
} }