Minor change

This commit is contained in:
KennyTV 2020-03-25 18:36:06 +01:00
parent 563c5f830d
commit c570f4a972
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,6 @@
package us.myles.ViaVersion;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import us.myles.ViaVersion.api.Via;
import us.myles.ViaVersion.api.data.UserConnection;
import us.myles.ViaVersion.api.platform.ViaInjector;
@ -48,7 +46,7 @@ public class ViaManager {
if (platform.getConf().isCheckForUpdates())
UpdateUtil.sendUpdateMessage();
// Force class load
ProtocolRegistry.getSupportedVersions();
ProtocolRegistry.init();
// Inject
try {
injector.inject();

View File

@ -88,6 +88,10 @@ public class ProtocolRegistry {
registerProtocol(new Protocol1_16To1_15_2(), ProtocolVersion.v1_16, ProtocolVersion.v1_15_2);
}
public static void init() {
// Empty method to trigger static initializer once
}
/**
* Register a protocol
*