From 3bdbe04261ffd85f10d6b213169b7e4a7413ba7b Mon Sep 17 00:00:00 2001 From: LexManos Date: Sat, 28 May 2016 23:19:27 -0700 Subject: [PATCH] Fixed TileEntityBeacon not using position-aware getLightOpacity. Closes #2530 and #2910 --- .../net/minecraft/tileentity/TileEntityBeacon.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/tileentity/TileEntityBeacon.java.patch b/patches/minecraft/net/minecraft/tileentity/TileEntityBeacon.java.patch index 0e6710dac..afc892754 100644 --- a/patches/minecraft/net/minecraft/tileentity/TileEntityBeacon.java.patch +++ b/patches/minecraft/net/minecraft/tileentity/TileEntityBeacon.java.patch @@ -1,5 +1,14 @@ --- ../src-base/minecraft/net/minecraft/tileentity/TileEntityBeacon.java +++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityBeacon.java +@@ -130,7 +130,7 @@ + { + if (iblockstate.func_177230_c() != Blocks.field_150397_co) + { +- if (iblockstate.func_185891_c() >= 15 && iblockstate.func_177230_c() != Blocks.field_150357_h) ++ if (iblockstate.getLightOpacity(this.field_145850_b, blockpos$mutableblockpos) >= 15 && iblockstate.func_177230_c() != Blocks.field_150357_h) + { + this.field_146015_k = false; + this.field_174909_f.clear(); @@ -181,7 +181,7 @@ { Block block = this.field_145850_b.func_180495_p(new BlockPos(j1, i2, k1)).func_177230_c();