Cables now use simplified rendering.

This commit is contained in:
AlgorithmX2 2014-02-13 23:32:35 -06:00
parent de0cea955a
commit 480f4b8180
4 changed files with 9 additions and 0 deletions

View file

@ -752,6 +752,7 @@ public class PartCable extends AEBasePart implements IPartCable
@SideOnly(Side.CLIENT)
public void renderStatic(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer)
{
rh.useSimpliedRendering( x, y, z, this );
boolean useCovered = false;
boolean requireDetailed = false;

View file

@ -138,6 +138,7 @@ public class PartCableCovered extends PartCable
@SideOnly(Side.CLIENT)
public void renderStatic(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer)
{
rh.useSimpliedRendering( x, y, z, this );
rh.setTexture( getTexture( getCableColor() ) );
EnumSet<ForgeDirection> sides = connections.clone();

View file

@ -156,6 +156,7 @@ public class PartCableSmart extends PartCable
@SideOnly(Side.CLIENT)
public void renderStatic(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer)
{
rh.useSimpliedRendering( x, y, z, this );
rh.setTexture( getTexture( getCableColor() ) );
EnumSet<ForgeDirection> sides = connections.clone();

View file

@ -103,6 +103,11 @@ public class Platform
*/
static private Random rdnSrc = new Random();
public static Random getRandom()
{
return rdnSrc;
}
public static int getRandomInt()
{
return Math.abs( rdnSrc.nextInt() );
@ -1445,4 +1450,5 @@ public class Platform
{
return false;
}
}