Fix #64, only call the event on the client.
This commit is contained in:
parent
8be3c5ea97
commit
0aae1ff334
|
@ -4,12 +4,15 @@ import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraftforge.client.event.TextureStitchEvent;
|
import net.minecraftforge.client.event.TextureStitchEvent;
|
||||||
import net.minecraftforge.fml.client.FMLClientHandler;
|
import net.minecraftforge.fml.client.FMLClientHandler;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
|
||||||
public class IronChestEventHandler
|
public class IronChestEventHandler
|
||||||
{
|
{
|
||||||
public static IronChestEventHandler INSTANCE = new IronChestEventHandler();
|
public static IronChestEventHandler INSTANCE = new IronChestEventHandler();
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public void onPreTextureStiching(TextureStitchEvent.Pre event)
|
public void onPreTextureStiching(TextureStitchEvent.Pre event)
|
||||||
{
|
{
|
||||||
if (event.getMap() == FMLClientHandler.instance().getClient().getTextureMapBlocks())
|
if (event.getMap() == FMLClientHandler.instance().getClient().getTextureMapBlocks())
|
||||||
|
|
Loading…
Reference in New Issue