mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-05-17 22:18:44 +02:00
Add null check in BlockSpring#getBlockColor
This commit is contained in:
parent
5f9897ca1c
commit
6370e49edb
|
@ -33,7 +33,7 @@ public class BlockSpring extends BlockContainerImpl implements ICustomBlockState
|
|||
@Override
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public BlockColor getBlockColor() {
|
||||
return (state, level, pos, i) -> BiomeColors.getAverageWaterColor(level, pos);
|
||||
return (state, level, pos, i) -> level == null || pos == null ? -1 : BiomeColors.getAverageWaterColor(level, pos);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue