Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -253,7 +253,10 @@ void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const · 252 unmodified lines | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) { | 255 | void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) { |
| 256 | 256 | if (killedNode->getType() == NodeType::EntityServer) { | |
| 257 | _entitiesScriptEngine->unloadAllEntityScripts(); | ||
| 258 | resetEntitiesScriptEngine(); | ||
| 259 | } | ||
| 257 | } | 260 | } |
| 258 | 261 | ||
| 259 | void EntityScriptServer::sendStatsPacket() { | 262 | void EntityScriptServer::sendStatsPacket() { |