From a705a12cdfae75cf2c584668f6ffbb82f4ebb264 Mon Sep 17 00:00:00 2001 From: LexManos Date: Sun, 21 Oct 2012 10:23:46 -0700 Subject: [PATCH] Removed Forge's TileEntity.getRenderDistance, now a vanilla feature: TileEntity.func_82115_m --- .../net/minecraft/src/TileEntity.java.patch | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/patches/common/net/minecraft/src/TileEntity.java.patch b/patches/common/net/minecraft/src/TileEntity.java.patch index 1844a4b96d..439e0fd5f1 100644 --- a/patches/common/net/minecraft/src/TileEntity.java.patch +++ b/patches/common/net/minecraft/src/TileEntity.java.patch @@ -1,8 +1,8 @@ --- ../src_base/common/net/minecraft/src/TileEntity.java +++ ../src_work/common/net/minecraft/src/TileEntity.java -@@ -257,4 +257,41 @@ - addMapping(TileEntityEnchantmentTable.class, "EnchantTable"); - addMapping(TileEntityEndPortal.class, "Airportal"); +@@ -264,4 +264,33 @@ + addMapping(TileEntityBeacon.class, "Beacon"); + addMapping(TileEntitySkull.class, "Skull"); } + + /** @@ -23,7 +23,7 @@ + * @param net The NetworkManager the packet originated from + * @param pkt The data packet + */ -+ public void onDataPacket(NetworkManager net, Packet132TileEntityData pkt) ++ public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) + { + } + @@ -32,13 +32,5 @@ + */ + public void onChunkUnload() + { -+ } -+ -+ /** -+ * @return The maximum distance between the player and the TileEntity at which the TileEntitySpecialRenderer will be called -+ */ -+ public double getRenderDistance() -+ { -+ return 64; + } }