Skip to content

Commit

Permalink
yell very loudly if NMS bindings fail to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsek committed Jun 1, 2022
1 parent 675a446 commit b4cdb7f
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ static void init(PlatformImpl platform) {
throw new RuntimeException("Error initializing NMS bindings. Report this to Terra.", e);
}
} catch(ClassNotFoundException e) {
logger.warn("NMS bindings for version {} do not exist. Support for this version is limited.", NMS);
logger.error("NMS bindings for version {} do not exist. Support for this version is limited.", NMS);
logger.error("This is usually due to running Terra on an unsupported Minecraft version.");
logger.error("");
logger.error("");
for(int i = 0; i < 20; i++) {
logger.error("PROCEEDING WITH AN EXISTING TERRA WORLD WILL RESULT IN CORRUPTION!!!");
}
logger.error("");
logger.error("");
logger.error("NMS bindings for version {} do not exist. Support for this version is limited.", NMS);
logger.error("This is usually due to running Terra on an unsupported Minecraft version.");
}
}
}

0 comments on commit b4cdb7f

Please sign in to comment.