Some cleanup for the tank's render
Still haven't fixed that odd error with the connector rendering on the wrong face. Though the plan is to remove the connector render as you can't see it past the pipe.
This commit is contained in:
parent
f24732fed4
commit
90539dd231
2 changed files with 183 additions and 183 deletions
|
@ -357,13 +357,13 @@ public class ModelLiquidTank extends ModelBase
|
|||
|
||||
public void renderMeter(TileEntity tee, float f5)
|
||||
{
|
||||
TileEntity[] ents = new TileEntity[6];
|
||||
TileEntity[] conenctedTiles = new TileEntity[6];
|
||||
if (tee instanceof TileEntityTank)
|
||||
{
|
||||
ents = ((TileEntityTank) tee).cc;
|
||||
conenctedTiles = ((TileEntityTank) tee).connectedBlocks;
|
||||
}
|
||||
// Front
|
||||
if (ents[2] instanceof TileEntityPipe)
|
||||
if (conenctedTiles[2] instanceof TileEntityPipe)
|
||||
{
|
||||
CCFront.render(f5);
|
||||
}
|
||||
|
@ -377,7 +377,7 @@ public class ModelLiquidTank extends ModelBase
|
|||
GuageL.render(f5);
|
||||
}
|
||||
// back
|
||||
if (ents[3] instanceof TileEntityPipe)
|
||||
if (conenctedTiles[3] instanceof TileEntityPipe)
|
||||
{
|
||||
CCBack.render(f5);
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ public class ModelLiquidTank extends ModelBase
|
|||
GuageL3.render(f5);
|
||||
}
|
||||
// right
|
||||
if (ents[4] instanceof TileEntityPipe)
|
||||
if (conenctedTiles[4] instanceof TileEntityPipe)
|
||||
{
|
||||
CCRight.render(f5);
|
||||
}
|
||||
|
@ -405,7 +405,7 @@ public class ModelLiquidTank extends ModelBase
|
|||
GuageL4.render(f5);
|
||||
}
|
||||
// left
|
||||
if (ents[5] instanceof TileEntityPipe)
|
||||
if (conenctedTiles[5] instanceof TileEntityPipe)
|
||||
{
|
||||
CCLeft.render(f5);
|
||||
}
|
||||
|
|
|
@ -79,18 +79,18 @@ public class RenderTank extends TileEntitySpecialRenderer
|
|||
public static String getTankTexture(int meta)
|
||||
{
|
||||
String type = "";
|
||||
switch (meta)
|
||||
switch (ColorCode.get(meta))
|
||||
{
|
||||
case 1:
|
||||
case RED:
|
||||
type = "Lava";
|
||||
break;
|
||||
case 4:
|
||||
case BLUE:
|
||||
type = "Water";
|
||||
break;
|
||||
case 13:
|
||||
case WHITE:
|
||||
type = "Milk";
|
||||
break;
|
||||
case 14:
|
||||
case ORANGE:
|
||||
type = "Steam";
|
||||
break;
|
||||
default:
|
||||
|
@ -105,13 +105,13 @@ public class RenderTank extends TileEntitySpecialRenderer
|
|||
public static String getGuageTexture(int meta, int pos)
|
||||
{
|
||||
String type = "";
|
||||
switch (meta)
|
||||
switch (ColorCode.get(meta))
|
||||
{
|
||||
case 1:
|
||||
case RED:
|
||||
type = "Lava";
|
||||
break;
|
||||
case 12:
|
||||
type = "Fuel";
|
||||
case BLUE:
|
||||
type = "Water";
|
||||
break;
|
||||
default:
|
||||
type = "";
|
||||
|
@ -124,15 +124,15 @@ public class RenderTank extends TileEntitySpecialRenderer
|
|||
public static String getCornerTexture(int meta)
|
||||
{
|
||||
String type = "";
|
||||
switch (meta)
|
||||
switch (ColorCode.get(meta))
|
||||
{
|
||||
case 1:
|
||||
case RED:
|
||||
type = "Lava";
|
||||
break;
|
||||
case 4:
|
||||
case BLUE:
|
||||
type = "Water";
|
||||
break;
|
||||
case 13:
|
||||
case WHITE:
|
||||
type = "Milk";
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue