diff --git a/src/main/java/net/raphimc/viaaprilfools/ViaAprilFoolsConfig.java b/src/main/java/net/raphimc/viaaprilfools/ViaAprilFoolsConfig.java index 7ae3cf4..5c87fd0 100644 --- a/src/main/java/net/raphimc/viaaprilfools/ViaAprilFoolsConfig.java +++ b/src/main/java/net/raphimc/viaaprilfools/ViaAprilFoolsConfig.java @@ -17,7 +17,6 @@ */ package net.raphimc.viaaprilfools; -import com.viaversion.viaversion.api.Via; import com.viaversion.viaversion.util.Config; import java.io.File; @@ -30,7 +29,6 @@ public class ViaAprilFoolsConfig extends Config implements net.raphimc.viaaprilf public ViaAprilFoolsConfig(final File configFile) { super(configFile); - Via.getManager().getConfigurationProvider().register(this); } @Override diff --git a/src/main/java/net/raphimc/viaaprilfools/platform/ViaAprilFoolsPlatform.java b/src/main/java/net/raphimc/viaaprilfools/platform/ViaAprilFoolsPlatform.java index 908edd2..bbdc02d 100644 --- a/src/main/java/net/raphimc/viaaprilfools/platform/ViaAprilFoolsPlatform.java +++ b/src/main/java/net/raphimc/viaaprilfools/platform/ViaAprilFoolsPlatform.java @@ -40,6 +40,8 @@ public interface ViaAprilFoolsPlatform { config.reload(); ViaAprilFools.init(this, config); Via.getManager().getSubPlatforms().add(ViaAprilFools.IMPL_VERSION); + Via.getManager().getConfigurationProvider().register(config); + final ProtocolManager protocolManager = Via.getManager().getProtocolManager();