Removes misleading Nullable annotation from canCreatureSpawn (#7840)

This commit is contained in:
OneLemonyBoi authored and GitHub committed 2021-07-16 19:38:06 -07:00
1 parent 8c8b31435b
commit 86352e9c19
1 file changed
+1 -1
@@ -260,7 +260,7 @@ public interface IForgeBlock
* @param type The Mob Category Type
* @return True to allow a mob of the specified category to spawn, false to prevent it.
*/
default boolean canCreatureSpawn(BlockState state, IBlockReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType type, @Nullable EntityType<?> entityType)
default boolean canCreatureSpawn(BlockState state, IBlockReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType type, EntityType<?> entityType)
{
return state.isValidSpawn(world, pos, entityType);
}