revert Object script change for now

didn't consider relative paths
This commit is contained in:
Kae 2024-06-20 09:16:37 +10:00 committed by GitHub
parent 39a6e900a4
commit 83686a816c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());