mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Unload all scripts on entity server loss
This commit is contained in:
parent
cbc69fbf9e
commit
6b0b19d36d
1 changed files with 4 additions and 1 deletions
|
@ -253,7 +253,10 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const
|
|||
}
|
||||
|
||||
void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) {
|
||||
|
||||
if (killedNode->getType() == NodeType::EntityServer) {
|
||||
_entitiesScriptEngine->unloadAllEntityScripts();
|
||||
resetEntitiesScriptEngine();
|
||||
}
|
||||
}
|
||||
|
||||
void EntityScriptServer::sendStatsPacket() {
|
||||
|
|
Loading…
Reference in a new issue