add logger error when game not found

This commit is contained in:
Ecorous 2024-05-17 20:34:54 +01:00
parent a2b632bf2d
commit 31480081bf
Signed by: Ecorous
SSH key fingerprint: SHA256:ni7WK6Ud51dVmDv8DctoqLEr3XXhAI51s6IFMYvJKDM

View file

@ -35,6 +35,7 @@ public class Minecraft implements NonsensePlugin {
public boolean init(LoaderImpl loader) { public boolean init(LoaderImpl loader) {
Path gameJar = findGame(); Path gameJar = findGame();
if (gameJar == null){ if (gameJar == null){
LOGGER.error("Could not find game jar!");
return false; return false;
//throw new IllegalStateException("Could not find game jar!"); //throw new IllegalStateException("Could not find game jar!");
} }