mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Minor change
This commit is contained in:
parent
563c5f830d
commit
c570f4a972
@ -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();
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user