summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/events/TextureEvent.java
blob: e570da6c2ac8054bb379fa8197f0048eb3b6a5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package darkknight.jewelrycraft.events;


import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import darkknight.jewelrycraft.block.BlockList;
import net.minecraftforge.client.event.TextureStitchEvent;

public class TextureEvent
{
    @SubscribeEvent
    @SideOnly(Side.CLIENT)
    public void textureFix(TextureStitchEvent.Post e)
    {
        if (e.map.getTextureType() == 0)
            BlockList.moltenMetalFluid.setIcons(BlockList.moltenMetal.getBlockTextureFromSide(0));
    }
}