Hate java loading classes order thing
This commit is contained in:
@@ -45,7 +45,14 @@ public class VoxyCommands {
|
|||||||
.then(ClientCommandManager.literal("cancel")
|
.then(ClientCommandManager.literal("cancel")
|
||||||
.executes(VoxyCommands::cancelImport));
|
.executes(VoxyCommands::cancelImport));
|
||||||
|
|
||||||
if (DHImporter.HasRequiredLibraries) {
|
boolean hasXZStream = true;
|
||||||
|
try {
|
||||||
|
Class.forName("org.tukaani.xz.XZInputStream");
|
||||||
|
} catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||||
|
hasXZStream = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DHImporter.HasRequiredLibraries && hasXZStream) {
|
||||||
imports = imports
|
imports = imports
|
||||||
.then(ClientCommandManager.literal("distant_horizons")
|
.then(ClientCommandManager.literal("distant_horizons")
|
||||||
.then(ClientCommandManager.argument("sqlDbPath", StringArgumentType.string())
|
.then(ClientCommandManager.argument("sqlDbPath", StringArgumentType.string())
|
||||||
|
|||||||
Reference in New Issue
Block a user