Clean up Block.getLightValue(IBlockState, IBlockAccess, BlockPos) (#4202)

This commit is contained in:
PhiPro95 authored and mezz committed 2017-10-05 20:21:50 -07:00
1 parent 949c8c20d4
commit f1ee747082
1 file changed
+3 -8
@@ -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
{