From 1f2414a41feb713c9eece7936fb6fbcc9f376dcb Mon Sep 17 00:00:00 2001 From: Ivan-267 <61947090+Ivan-267@users.noreply.github.com> Date: Fri, 1 Dec 2023 07:57:17 +0100 Subject: [PATCH] Update sync.gd Disables `sort_keys` for `stringify` --- addons/godot_rl_agents/sync.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/godot_rl_agents/sync.gd b/addons/godot_rl_agents/sync.gd index b25f44f..b17daa9 100644 --- a/addons/godot_rl_agents/sync.gd +++ b/addons/godot_rl_agents/sync.gd @@ -179,7 +179,7 @@ func _get_dict_json_message(): return json_data func _send_dict_as_json_message(dict): - stream.put_string(JSON.stringify(dict)) + stream.put_string(JSON.stringify(dict, "", false)) func _send_env_info(): var json_dict = _get_dict_json_message()