Switched fluid icons from event to fluid block's getIcon

This commit is contained in:
Glassmaker committed 2014-08-09 13:07:33 +03:00
1 parent 7a42c03f0b
commit 32f41d26ba
3 files changed
+12 -35

No files matched your search

@@ -147,33 +147,4 @@ public class SmelteryProxyClient extends SmelteryProxyCommon
}
return null;
}
/* Liquids */
IIcon[] stillIcons = new IIcon[1];
IIcon[] flowIcons = new IIcon[1];
@SubscribeEvent
public void preStitch (TextureStitchEvent.Pre event)
{
TextureMap register = event.map;
if (register.getTextureType() == 0)
{
stillIcons[0] = register.registerIcon("tinker:liquid_pigiron");
flowIcons[0] = register.registerIcon("tinker:liquid_pigiron");
}
}
@SubscribeEvent
public void postStitch (TextureStitchEvent.Post event)
{
if (event.map.getTextureType() == 0)
{
for (int i = 0; i < TinkerSmeltery.fluidBlocks.length; i++)
{
TinkerSmeltery.fluids[i].setIcons(TinkerSmeltery.fluidBlocks[i].getIcon(0, 0), TinkerSmeltery.fluidBlocks[i].getIcon(2, 0));
}
TinkerSmeltery.pigIronFluid.setIcons(stillIcons[0], flowIcons[0]);
}
}
}