mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Use extended version of getLightValue in all places (#6433)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user