Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-20 09:16:37 +1000
committerGitHub <noreply@github.com>2024-06-20 09:16:37 +1000
commit83686a816c8b1cb039e60ddb960ae9ab58a29ef9 (patch)
treee10f677ba75df26077f8a114f505e4191deaa7b8
parent39a6e900a4e5d000b975bfd2f24846489eb1aa82 (diff)
revert Object script change for now
didn't consider relative paths
-rw-r--r--source/game/StarObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarObject.cpp b/source/game/StarObject.cpp
index 269181e..e613efe 100644
--- a/source/game/StarObject.cpp
+++ b/source/game/StarObject.cpp
@@ -188,7 +188,7 @@ void Object::init(World* world, EntityId entityId, EntityMode mode) {
setKeepAlive(configValue("keepAlive", false).toBool());
- m_scriptComponent.setScripts(jsonToStringList(configValue("scripts", JsonArray()).toArray()));
+ m_scriptComponent.setScripts(m_config->scripts);
m_scriptComponent.setUpdateDelta(configValue("scriptDelta", 5).toInt());
m_scriptComponent.addCallbacks("object", makeObjectCallbacks());