Made code consistent with my other Via projects

This commit is contained in:
RaphiMC 2023-10-08 10:45:35 +02:00
parent 21a7fe468b
commit 3f57c28d65
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -74,8 +74,8 @@ public interface ViaLegacyPlatform {
final ViaLegacyConfig config = new ViaLegacyConfig(new File(dataFolder, "vialegacy.yml"));
config.reload();
ViaLegacy.init(this, config);
Via.getManager().getSubPlatforms().add(ViaLegacy.IMPL_VERSION);
Via.getManager().getConfigurationProvider().register(config);
Via.getManager().getSubPlatforms().add(ViaLegacy.IMPL_VERSION);
final ProtocolManager protocolManager = Via.getManager().getProtocolManager();
protocolManager.registerProtocol(new Protocol1_8to1_7_6_10(), ProtocolVersion.v1_8, ProtocolVersion.v1_7_6);