diff --git a/src/main/java/roadhog360/simpleskinbackport/ClientProxy.java b/src/main/java/roadhog360/simpleskinbackport/ClientProxy.java index 269942f..349ad65 100644 --- a/src/main/java/roadhog360/simpleskinbackport/ClientProxy.java +++ b/src/main/java/roadhog360/simpleskinbackport/ClientProxy.java @@ -1,11 +1,9 @@ package roadhog360.simpleskinbackport; -import com.mojang.authlib.minecraft.MinecraftSessionService; +import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; -import net.minecraft.client.Minecraft; -import net.minecraft.client.renderer.texture.TextureManager; - -import java.io.File; +import net.minecraftforge.common.MinecraftForge; +import roadhog360.simpleskinbackport.core.ClientEventHandler; public class ClientProxy extends CommonProxy { @@ -15,10 +13,7 @@ public class ClientProxy extends CommonProxy { @Override public void init(FMLInitializationEvent event) { super.init(event); - -// TextureManager texManager = Minecraft.getMinecraft().renderEngine; -// File skinFolder = new File(Minecraft.getMinecraft().fileAssets, "skins"); -// MinecraftSessionService sessionService = Minecraft.getMinecraft().func_152347_ac(); // getSessionService -// Minecraft.getMinecraft().field_152350_aA/*skinManager*/ = new NewSkinManager(Minecraft.getMinecraft().func_152342_ad()/*getSkinManager*/, texManager, skinFolder, sessionService); + FMLCommonHandler.instance().bus().register(ClientEventHandler.INSTANCE); + MinecraftForge.EVENT_BUS.register(ClientEventHandler.INSTANCE); } } diff --git a/src/main/java/roadhog360/simpleskinbackport/CommonProxy.java b/src/main/java/roadhog360/simpleskinbackport/CommonProxy.java index 52604da..0a2b40a 100644 --- a/src/main/java/roadhog360/simpleskinbackport/CommonProxy.java +++ b/src/main/java/roadhog360/simpleskinbackport/CommonProxy.java @@ -17,8 +17,6 @@ public void preInit(FMLPreInitializationEvent event) { // load "Do your mod setup. Build whatever data structures you care about. Register recipes." (Remove if not needed) public void init(FMLInitializationEvent event) { - FMLCommonHandler.instance().bus().register(ClientEventHandler.INSTANCE); - MinecraftForge.EVENT_BUS.register(ClientEventHandler.INSTANCE); } // postInit "Handle interaction with other mods, complete your setup based on this." (Remove if not needed)