From f1ee7470820c58fef5fddc7c4909c7cc662adc13 Mon Sep 17 00:00:00 2001 From: PhiPro95 Date: Fri, 6 Oct 2017 05:21:50 +0200 Subject: [PATCH] Clean up Block.getLightValue(IBlockState, IBlockAccess, BlockPos) (#4202) --- .../minecraft/net/minecraft/block/Block.java.patch | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/patches/minecraft/net/minecraft/block/Block.java.patch b/patches/minecraft/net/minecraft/block/Block.java.patch index f09e767c96..327cc61eaf 100644 --- a/patches/minecraft/net/minecraft/block/Block.java.patch +++ b/patches/minecraft/net/minecraft/block/Block.java.patch @@ -214,7 +214,7 @@ public SoundType func_185467_w() { return this.field_149762_H; -@@ -908,6 +935,1254 @@ +@@ -908,6 +935,1249 @@ { } @@ -261,7 +261,7 @@ + } + + /** -+ * Get a light value for the block at the specified coordinates, normal ranges are between 0 and 15 ++ * Get a light value for this block, taking into account the given state and coordinates, normal ranges are between 0 and 15 + * + * @param state Block state + * @param world The current world @@ -270,11 +270,6 @@ + */ + public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) + { -+ IBlockState other = world.func_180495_p(pos); -+ if (other.func_177230_c() != this) -+ { -+ return other.getLightValue(world, pos); -+ } + return state.func_185906_d(); + } + @@ -1469,7 +1464,7 @@ public static void func_149671_p() { func_176215_a(0, field_176230_a, (new BlockAir()).func_149663_c("air")); -@@ -1201,14 +2476,7 @@ +@@ -1201,14 +2471,7 @@ } else {