Cables now use simplified rendering.
This commit is contained in:
parent
de0cea955a
commit
480f4b8180
4 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue