diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-20 09:16:37 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 09:16:37 +1000 |
commit | 83686a816c8b1cb039e60ddb960ae9ab58a29ef9 (patch) | |
tree | e10f677ba75df26077f8a114f505e4191deaa7b8 | |
parent | 39a6e900a4e5d000b975bfd2f24846489eb1aa82 (diff) |
revert Object script change for now
didn't consider relative paths
-rw-r--r-- | source/game/StarObject.cpp | 2 |
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()); |