From 98f464ad437788cf31a9fd075a9fcb4f007fcdaf Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 20 Jun 2017 20:40:37 -0700 Subject: [PATCH] Fix Chunk patch (#4036) --- patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch b/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch index 27ac704b9d..ce17a442d5 100644 --- a/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch +++ b/patches/minecraft/net/minecraft/world/chunk/Chunk.java.patch @@ -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 !field_76636_d ? state.func_185891_c() : state.getLightOpacity(field_76637_e, new BlockPos(this.field_76635_g << 4 | this.field_76635_g & 15, p_150808_2_, this.field_76647_h << 4 | this.field_76647_h & 15)); ++ return !field_76636_d ? state.func_185891_c() : state.getLightOpacity(field_76637_e, new BlockPos(this.field_76635_g << 4 | p_150808_1_ & 15, p_150808_2_, this.field_76647_h << 4 | p_150808_3_ & 15)); } public IBlockState func_177435_g(BlockPos p_177435_1_)