Remove unneeded Event Handler.

This commit is contained in:
alexbegt 2016-06-30 23:01:17 -04:00
parent e718cae381
commit cc78de2c6d
2 changed files with 0 additions and 29 deletions

View File

@ -12,7 +12,6 @@ package cpw.mods.ironchest;
import java.util.Properties; import java.util.Properties;
import cpw.mods.ironchest.client.IronChestEventHandler;
import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.EventHandler;
@ -65,6 +64,5 @@ public class IronChest
NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy); NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy);
proxy.registerRenderInformation(); proxy.registerRenderInformation();
MinecraftForge.EVENT_BUS.register(new OcelotsSitOnChestsHandler()); MinecraftForge.EVENT_BUS.register(new OcelotsSitOnChestsHandler());
MinecraftForge.EVENT_BUS.register(IronChestEventHandler.INSTANCE);
} }
} }

View File

@ -1,27 +0,0 @@
package cpw.mods.ironchest.client;
import cpw.mods.ironchest.IronChestType;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraftforge.fml.client.FMLClientHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class IronChestEventHandler
{
public static IronChestEventHandler INSTANCE = new IronChestEventHandler();
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onPreTextureStiching(TextureStitchEvent.Pre event)
{
if (event.getMap() == FMLClientHandler.instance().getClient().getTextureMapBlocks())
{
for (IronChestType t : IronChestType.VALUES)
{
event.getMap().registerSprite(new ResourceLocation(t.getBreakTexture()));
}
}
}
}