Merge pull request #14 from Atlante45/ess-pr

Unload all scripts on entity server loss
This commit is contained in:
Stephen Birarda 2017-01-18 17:48:43 -08:00 committed by GitHub
commit fc03d25155

View file

@ -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() {