Don't require Minecraft be installed

master
Treer 2018-03-24 23:18:44 +11:00
parent 992c52b0c0
commit 8bf76b88b8
1 changed files with 8 additions and 2 deletions

View File

@ -66,8 +66,14 @@ public class PerApplicationInjector {
this.playerInformationProvider = new PlayerInformationCache();
this.seedHistoryLogger = SeedHistoryLogger.from(parameters.seedHistoryFile);
this.minecraftInstallation = MinecraftInstallation
.newLocalMinecraftInstallation(parameters.dotMinecraftDirectory);
MinecraftInstallation mcInstallation = null;
try {
mcInstallation = MinecraftInstallation
.newLocalMinecraftInstallation(parameters.dotMinecraftDirectory);
} catch (DotMinecraftDirectoryNotFoundException ex) {
// Minecraft not found, Amidstest will be minetest only
}
this.minecraftInstallation = mcInstallation;
this.minetestInstallation = MinetestInstallation
.newLocalMinetestInstallationOrDefault(parameters.minetestDirectory);
minetestInstallation.setGameInstallationPassThrough(minecraftInstallation);