diff --git a/gradle.properties b/gradle.properties index e63aa4c..e07bf65 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ org.gradle.configureondemand=true # Project properties maven_name=ViaProtocolHack maven_group=net.raphimc -maven_version=2.1.4 +maven_version=2.1.5 diff --git a/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java b/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java index 4c12f65..f57eee0 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java +++ b/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java @@ -57,8 +57,8 @@ public class ViaProtocolHack { .build()); MappingDataLoader.enableMappingsCache(); - Via.getManager().addEnableListener(() -> { - if (platformSuppliers != null) { + if (platformSuppliers != null) { + Via.getManager().addEnableListener(() -> { for (Supplier additionalPlatformSupplier : platformSuppliers) { try { additionalPlatformSupplier.get(); @@ -66,8 +66,8 @@ public class ViaProtocolHack { LOGGER.log(Level.SEVERE, "Platform failed to load", e); } } - } - }); + }); + } ((ViaManagerImpl) Via.getManager()).init(); Via.getManager().getProtocolManager().setMaxProtocolPathSize(Integer.MAX_VALUE);