Skip to content

Commit

Permalink
Move client event handler to correct proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Sep 2, 2024
1 parent 69c4ee4 commit 602d195
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 5 additions & 10 deletions src/main/java/roadhog360/simpleskinbackport/ClientProxy.java
Original file line number Diff line number Diff line change
@@ -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 {

Expand All @@ -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);
}
}
2 changes: 0 additions & 2 deletions src/main/java/roadhog360/simpleskinbackport/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 602d195

Please sign in to comment.