Merge pull request #196 from CovertJaguar/patch-11
Updated Pipe TESR render dist check
This commit is contained in:
commit
7af23a7af3
2 changed files with 5 additions and 5 deletions
|
@ -615,4 +615,9 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, ITank
|
|||
}
|
||||
worldObj.markBlockAsNeedsUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getRenderDistance() {
|
||||
return 24;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,6 @@ public class RenderPipe extends TileEntitySpecialRenderer {
|
|||
|
||||
final static private int displayLiquidStages = 40;
|
||||
|
||||
final static private int renderDistanceSq = 24 * 24;
|
||||
|
||||
final static private int numItemsToRender = 10;
|
||||
|
||||
private final static EntityItem dummyEntityItem = new EntityItem(null);
|
||||
|
@ -233,9 +231,6 @@ public class RenderPipe extends TileEntitySpecialRenderer {
|
|||
|
||||
if (BuildCraftCore.render == RenderMode.NoDynamic)
|
||||
return;
|
||||
|
||||
if(tileentity.getDistanceFrom(tileEntityRenderer.playerX, tileEntityRenderer.playerY, tileEntityRenderer.playerZ) >= renderDistanceSq)
|
||||
return;
|
||||
|
||||
initializeDisplayPowerList(tileentity.worldObj);
|
||||
|
||||
|
|
Loading…
Reference in a new issue