From 2cee7df57fc38fe6a9f68d103d7d193c8bcbdfcf Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 11 Oct 2023 20:37:59 +0200 Subject: [PATCH] download window QoL --- src/core/Global.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 39394941..699832bf 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -141,6 +141,7 @@ function onLoad(savedData) resetChaosTokenStatTracker() getModVersion() + onClick_refreshList() math.randomseed(os.time()) end @@ -724,9 +725,10 @@ function complete_obj_download(request, params) if replaced_object then local pos = replaced_object.getPosition() local rot = replaced_object.getRotation() + local scale = replaced_object.getScale() destroyObject(replaced_object) Wait.frames(function() - spawnObjectJSON({json = json, position = pos, rotation = rot}) + spawnObjectJSON({ json = json, position = pos, rotation = rot, scale = scale }) end, 1) else spawnObjectJSON({json = json})