Initializing the protected player manager whenever a server is started. This should help prevent any unwanted remnants from another server to be present on other servers.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package dev.micle.loginprotection.proxy;
|
||||
|
||||
import dev.micle.loginprotection.data.ProtectedPlayerManager;
|
||||
import dev.micle.loginprotection.network.NetworkManager;
|
||||
import dev.micle.loginprotection.setup.Config;
|
||||
import dev.micle.loginprotection.setup.Registration;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@ -26,9 +27,7 @@ public class Proxy implements IProxy {
|
||||
// Initialize setup
|
||||
Registration.register();
|
||||
Config.init();
|
||||
|
||||
// Initialize other
|
||||
ProtectedPlayerManager.init();
|
||||
NetworkManager.init();
|
||||
|
||||
// Register mod event bus listeners
|
||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||
@ -51,6 +50,7 @@ public class Proxy implements IProxy {
|
||||
private static void onAddReloadListeners(AddReloadListenerEvent event) {}
|
||||
|
||||
private static void serverStarted(ServerStartedEvent event) {
|
||||
ProtectedPlayerManager.init();
|
||||
server = event.getServer();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user