9
0
mirror of https://github.com/Kas-tle/java2bedrock.sh.git synced 2025-12-19 14:59:13 +00:00

Fix possibility path is empty for item_texture

This commit is contained in:
Kas-tle
2023-01-04 10:27:55 -08:00
committed by GitHub
parent b70b22689a
commit fbe56432b1

View File

@@ -592,7 +592,7 @@ fi
# add icon textures to item atlas # add icon textures to item atlas
if [[ -f scratch_files/icons.csv ]] if [[ -f scratch_files/icons.csv ]]
then 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 ' jq -s '
.[0] as $icons .[0] as $icons
| .[1] | .[1]