From 483bf26aa4fe63d411f15c59bdbefe741c7fd5f0 Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Sun, 1 Apr 2018 08:02:57 +0100 Subject: [PATCH] Fix entities sometimes not rendering when out-of-world (#4823) --- .../minecraft/client/renderer/RenderGlobal.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/renderer/RenderGlobal.java.patch b/patches/minecraft/net/minecraft/client/renderer/RenderGlobal.java.patch index 095c74c09..9473dedbf 100644 --- a/patches/minecraft/net/minecraft/client/renderer/RenderGlobal.java.patch +++ b/patches/minecraft/net/minecraft/client/renderer/RenderGlobal.java.patch @@ -84,6 +84,15 @@ this.func_180443_s(); +@@ -895,7 +910,7 @@ + { + RenderChunk renderchunk1 = this.field_175008_n.func_178161_a(new BlockPos((j << 4) + 8, i, (k << 4) + 8)); + +- if (renderchunk1 != null && p_174970_4_.func_78546_a(renderchunk1.field_178591_c)) ++ if (renderchunk1 != null && p_174970_4_.func_78546_a(renderchunk1.field_178591_c.func_72321_a(0.0, blockpos1.func_177956_o() > 0 ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY, 0.0))) // Forge: fix MC-73139 + { + renderchunk1.func_178577_a(p_174970_5_); + queue.add(new RenderGlobal.ContainerLocalRenderInformation(renderchunk1, (EnumFacing)null, 0)); @@ -951,7 +966,7 @@ BlockPos blockpos2 = renderchunk4.func_178568_j().func_177982_a(8, 8, 8); boolean flag3 = blockpos2.func_177951_i(blockpos1) < 768.0D;