mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #14 from Atlante45/ess-pr
Unload all scripts on entity server loss
This commit is contained in:
commit
fc03d25155
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