Fix up the rendering of gui engines. Closes #708
This commit is contained in:
parent
d4a396e94a
commit
53a8db85e8
2 changed files with 4 additions and 3 deletions
|
@ -173,9 +173,9 @@ public class BuildCraftEnergy {
|
|||
@SideOnly(Side.CLIENT)
|
||||
public void textureHook(TextureStitchEvent.Post event) {
|
||||
if (event.map == Minecraft.getMinecraft().renderEngine.textureMapItems) {
|
||||
LiquidDictionary.getCanonicalLiquid("Fuel").setRenderingIcon(fuel.getIconFromDamage(0));
|
||||
LiquidDictionary.getCanonicalLiquid("Fuel").setRenderingIcon(fuel.getIconFromDamage(0)).setTextureSheet("/gui/items.png");
|
||||
} else {
|
||||
LiquidDictionary.getCanonicalLiquid("Oil").setRenderingIcon(oilStill.getBlockTextureFromSide(1));
|
||||
LiquidDictionary.getCanonicalLiquid("Oil").setRenderingIcon(oilStill.getBlockTextureFromSide(1)).setTextureSheet("/terrain.png");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,8 @@ public class GuiCombustionEngine extends GuiEngine {
|
|||
squaled = 0;
|
||||
}
|
||||
|
||||
drawTexturedModelRectFromIcon(j + col, k + line + 58 - x - start, liquid.getRenderingIcon(), 16, 16 - (16 - x));
|
||||
mc.renderEngine.bindTexture(liquid.canonical().getTextureSheet());
|
||||
drawTexturedModelRectFromIcon(j + col, k + line + 58 - x - start, liquid.canonical().getRenderingIcon(), 16, 16 - (16 - x));
|
||||
start = start + 16;
|
||||
|
||||
if (x == 0 || squaled == 0) {
|
||||
|
|
Loading…
Reference in a new issue