mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Update SlashCommandHandler.cpp
This commit is contained in:
parent
ca002c9f40
commit
9ed683d2ad
@ -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--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user