From 83686a816c8b1cb039e60ddb960ae9ab58a29ef9 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:16:37 +1000 Subject: [PATCH] revert Object script change for now didn't consider relative paths --- source/game/StarObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());