Use extended version of getLightValue in all places (#6433)

This commit is contained in:
Take Weiland authored and LexManos committed 2020-01-22 12:22:35 -07:00
1 parent 345387645e
commit ad7e4e95ae
9 files changed
+73 -3

No files matched your search

@@ -117,7 +117,7 @@ public interface IForgeBlock
* @param pos
* @return The light value
*/
default int getLightValue(BlockState state, ILightReader world, BlockPos pos)
default int getLightValue(BlockState state, IBlockReader world, BlockPos pos)
{
return state.getLightValue();
}
@@ -84,7 +84,7 @@ public interface IForgeBlockState
/**
* Get a light value for this block, taking into account the given state and coordinates, normal ranges are between 0 and 15
*/
default int getLightValue(ILightReader world, BlockPos pos)
default int getLightValue(IBlockReader world, BlockPos pos)
{
return getBlockState().getBlock().getLightValue(getBlockState(), world, pos);
}