Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Minor change
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
*
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren