Fix Chunk patch (#4036)

This commit is contained in:
mezz committed 2017-06-20 20:40:45 -07:00
1 parent e056c79ec7
commit 98f464ad43
1 file changed
+1 -1
@@ -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_)