mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +02:00
fix behavior with no entity server
This commit is contained in:
parent
74a3835a1e
commit
e879f22c95
1 changed files with 2 additions and 1 deletions
|
@ -4685,7 +4685,8 @@ void Application::packetSent(quint64 length) {
|
|||
void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scriptEngine) {
|
||||
|
||||
scriptEngine->setEmitScriptUpdatesFunction([this]() {
|
||||
return isPhysicsEnabled();
|
||||
SharedNodePointer entityServerNode = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::EntityServer);
|
||||
return !entityServerNode || isPhysicsEnabled();
|
||||
});
|
||||
|
||||
// setup the packet senders and jurisdiction listeners of the script engine's scripting interfaces so
|
||||
|
|
Loading…
Reference in a new issue