#!/usr/bin/bash

## (Added May 2025 v1.21.5)
# There is a bug in ~/.minecraft/webcache2
# Removing the folder fixes the issue.
OURDIR=~/.minecraft
if [ -d $OURDIR ]; then
    cd $OURDIR
    BADDIR=webcache2
    if [ -d $BADDIR ]; then
        rm -rf $BADDIR
    fi
fi
##
/opt/minecraft-launcher/minecraft-launcher
