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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user