From e32cc2a60740f0f44567b8450dc8a4454b0cada5 Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Wed, 21 Dec 2016 19:12:48 +0000 Subject: [PATCH] [1.11] Fixes for Chunk.getBlockLightOpacity implementation (#3537) --- patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch b/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch index 7f09586e9..616784d12 100644 --- a/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch +++ b/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch @@ -5,7 +5,7 @@ IBlockState iblockstate = this.func_186032_a(j, l - 1, k); - if (iblockstate.func_185891_c() != 0) -+ if (iblockstate.getLightOpacity(this.field_76637_e, new BlockPos(j, l - 1, k)) != 0) ++ if (this.func_150808_b(j, l - 1, k) != 0) { this.field_76634_f[k << 4 | j] = l; @@ -21,7 +21,7 @@ { - return this.func_186032_a(p_150808_1_, p_150808_2_, p_150808_3_).func_185891_c(); + IBlockState state = this.func_186032_a(p_150808_1_, p_150808_2_, p_150808_3_); //Forge: Can sometimes be called before we are added to the global world list. So use the less accurate one during that. It'll be recalculated later -+ return this.field_189550_d ? state.func_185891_c() : state.getLightOpacity(this.field_76637_e, new BlockPos(p_150808_1_, p_150808_2_, p_150808_3_)); ++ return !field_76636_d ? state.func_185891_c() : state.getLightOpacity(field_76637_e, new BlockPos(field_76635_g << 4 | p_150808_1_ & 15, p_150808_2_, field_76647_h << 4 | p_150808_3_ & 15)); } public IBlockState func_177435_g(BlockPos p_177435_1_)