Cables now use simplified rendering.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user