From fbe56432b190641bfa33571cbbcacc034ac57130 Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Wed, 4 Jan 2023 10:27:55 -0800 Subject: [PATCH] Fix possibility path is empty for item_texture --- converter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converter.sh b/converter.sh index 656bb91..a6d7b20 100755 --- a/converter.sh +++ b/converter.sh @@ -592,7 +592,7 @@ fi # add icon textures to item atlas if [[ -f scratch_files/icons.csv ]] then - jq -cR 'split(",")' scratch_files/icons.csv | jq -s 'map({(.[0]): {"textures": .[1]}}) | add' > scratch_files/icons.json + jq -cR 'split(",")' scratch_files/icons.csv | jq -s 'map({(.[0]): {"textures": (.[1] | gsub("//"; "/"))}}) | add' > scratch_files/icons.json jq -s ' .[0] as $icons | .[1]