package info.u_team.u_team_core;

import org.apache.logging.log4j.*;

import info.u_team.u_team_core.api.IModProxy;
import info.u_team.u_team_core.intern.proxy.*;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.*;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(UCoreMain.MODID)
public class UCoreMain {
	
	public static final String MODID = "uteamcore";
	public static final Logger LOGGER = LogManager.getLogger("UTeamCore");
	
	private static final IModProxy PROXY = DistExecutor.safeRunForDist(() -> ClientProxy::new, () -> CommonProxy::new);
	
	public UCoreMain() {
		JarSignVerifier.checkSigned(MODID);
		FMLJavaModLoadingContext.get().getModEventBus().register(this);
		PROXY.construct();
	}
	
	@SubscribeEvent
	public void setup(FMLCommonSetupEvent event) {
		PROXY.setup();
	}
	
	@SubscribeEvent
	public void ready(FMLLoadCompleteEvent event) {
		PROXY.complete();
	}
	
}

@@ -98,318 +98,77 @@
 ore.
-api.IModProxy;%0Aimport info.u_team.u_team_core.intern.proxy.*;%0Aimport info.u_team.u_team_core.util.verify.JarSignVerifier;%0Aimport net.minecraftforge.eventbus.api.SubscribeEvent;%0Aimport net.minecraftforge.fml.DistExecutor;%0Aimport net.minecraftforge.fml.common.Mod;%0Aimport net.minecraftforge.fml.event.lifecycle.*
+util.verify.JarSignVerifier;%0Aimport net.minecraftforge.fml.common.Mod
 ;%0Aim
@@ -409,127 +409,8 @@
 ;%0A%09%0A
-%09private static final IModProxy PROXY = DistExecutor.safeRunForDist(() -%3E ClientProxy::new, () -%3E CommonProxy::new);%0A%09%0A
 %09pub
@@ -536,209 +536,8 @@
 );%0A%09
-%09PROXY.construct();%0A%09%7D%0A%09%0A%09@SubscribeEvent%0A%09public void setup(FMLCommonSetupEvent event) %7B%0A%09%09PROXY.setup();%0A%09%7D%0A%09%0A%09@SubscribeEvent%0A%09public void ready(FMLLoadCompleteEvent event) %7B%0A%09%09PROXY.complete();%0A%09%7D%0A%09
+%7D
 %0A%7D%0A

Remove proxy from main class