mirror of
https://github.com/ViaVersion/ViaAprilFools.git
synced 2024-11-16 10:45:14 +01:00
Register config only once on platform init
This commit is contained in:
parent
0407b1e886
commit
1085ab3a35
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user