如题,1.20.4及之后的forge版服务端会在根目录产生一个“forge-1.20.6-50.0.29-shim.jar”,同时在自带的run.bat内多出了几行东西:
求知道的大佬解答一下这个shim.jar文件具体有什么用?谢谢。

代码:
java -jar forge-1.20.6-50.0.29-shim.jar --onlyCheckJava
if %ERRORLEVEL% NEQ 0 (
echo.
echo If you're struggling to fix the error above, ask for help on the forums or Discord mentioned in the readme.
goto :exit
)
REM Add custom program arguments (such as nogui) to the next line before the %* or pass them to this script directly
java @libraries/net/minecraftforge/forge/1.20.6-50.0.29/win_args.txt %* -nogui
:exit
pause
求知道的大佬解答一下这个shim.jar文件具体有什么用?谢谢。
