prism inconsistencies lmaooo

stable
Ivory 2025-04-27 19:52:37 -04:00
parent f7024ffe4c
commit c8b1cdef43
1 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,18 @@
INSTANCE_DIR="$HOME/.local/share/PrismLauncher/instances"
paths=(
"$HOME/.local/share/PrismLauncher/instances"
"$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances"
)
INSTANCE_DIR=""
for path in "${paths[@]}"; do
if [ -d "$path" ] && [ "$(ls -A "$path")" ]; then
INSTANCE_DIR="$path"
break
fi
done
INSTANCE=$(find "$INSTANCE_DIR" -mindepth 1 -maxdepth 1 -type d | fzf --prompt "Select Minecraft Instance: ")
if [ -z "$INSTANCE" ]; then
@ -20,4 +33,4 @@ mkdir -p "$RESOURCE_PACKS_DIR"
# ln -sf "$(pwd)/PloofPack.zip" "$RESOURCE_PACKS_DIR/PloofPack.zip"
cp PloofPack.zip "$RESOURCE_PACKS_DIR/PloofPack.zip"
echo "✅ Symlink created for '$INSTANCE'. Texture pack is now linked!"
echo "✅ Symlink created for '$INSTANCE'. Texture pack is now linked!"