Skip to content

Commit

Permalink
removed errors on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Dec 5, 2021
1 parent 0c72076 commit a349271
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ curl -sL -o %0 https://raw.githubusercontent.com/SanCraftDev/Mod-Installer/main/
FOR /F "usebackq" %%f IN (`PowerShell -NoProfile -Command "Write-Host([Environment]::GetFolderPath('Desktop'))"`) DO (
SET "DESKTOP_FOLDER=%%f"
)
if not exist "%appdata%\.minecraft\fabric.jar" (
del /S /Q "%appdata%\.minecraft\fabric.jar"
)
if not exist "%appdata%\.minecraft\1.17.bat" (
del /S /Q "%appdata%\.minecraft\1.17.bat"
)
if not exist "%appdata%\.minecraft\Update.bat" (
del /S /Q "%appdata%\.minecraft\Update.bat"
)
CLS
echo.
echo MIT License
Expand Down
6 changes: 6 additions & 0 deletions MC-Launcher.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
FOR /F "usebackq" %%f IN (`PowerShell -NoProfile -Command "Write-Host([Environment]::GetFolderPath('Desktop'))"`) DO (
SET "DESKTOP_FOLDER=%%f"
)
if not exist "%appdata%\.minecraft\fabric.jar" (
del /S /Q "%appdata%\.minecraft\fabric.jar"
)
if not exist "%appdata%\.minecraft\1.17.bat" (
del /S /Q "%appdata%\.minecraft\1.17.bat"
)
if not exist "%appdata%\.minecraft\Update.bat" (
del /S /Q "%appdata%\.minecraft\Update.bat"
)
CLS
C:
where java >nul 2>nul
Expand Down
6 changes: 6 additions & 0 deletions Mod-Installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ GOTO end
FOR /F "usebackq" %%f IN (`PowerShell -NoProfile -Command "Write-Host([Environment]::GetFolderPath('Desktop'))"`) DO (
SET "DESKTOP_FOLDER=%%f"
)
if not exist "%appdata%\.minecraft\fabric.jar" (
del /S /Q "%appdata%\.minecraft\fabric.jar"
)
if not exist "%appdata%\.minecraft\1.17.bat" (
del /S /Q "%appdata%\.minecraft\1.17.bat"
)
if not exist "%appdata%\.minecraft\Update.bat" (
del /S /Q "%appdata%\.minecraft\Update.bat"
)
set l=1.17.1
set lfl=0.12.8
set fal=fabric-loader-%lfl%-%l%
Expand Down

0 comments on commit a349271

Please sign in to comment.