No longer needed, getRenderDistance removed because Vanilla has it now, TileEntity.func_82115_m

This commit is contained in:
LexManos 2012-10-21 10:05:02 -07:00
parent 305a1ef66b
commit 9eeda7b4db

View file

@ -1,13 +0,0 @@
--- ../src_base/minecraft/net/minecraft/src/TileEntityRenderer.java
+++ ../src_work/minecraft/net/minecraft/src/TileEntityRenderer.java
@@ -126,7 +126,9 @@
*/
public void renderTileEntity(TileEntity par1TileEntity, float par2)
{
- if (par1TileEntity.getDistanceFrom(this.playerX, this.playerY, this.playerZ) < 4096.0D)
+ double dist = par1TileEntity.getRenderDistance();
+ dist *= dist;
+ if (par1TileEntity.getDistanceFrom(this.playerX, this.playerY, this.playerZ) < dist)
{
int var3 = this.worldObj.getLightBrightnessForSkyBlocks(par1TileEntity.xCoord, par1TileEntity.yCoord, par1TileEntity.zCoord, 0);
int var4 = var3 % 65536;