Remove unneeded Event Handler.
This commit is contained in:
parent
e718cae381
commit
cc78de2c6d
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue