mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
Add null check in BlockSpring#getBlockColor
(#321)
This commit is contained in:
parent
5f9897ca1c
commit
2a0f63e9f9
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public class BlockSpring extends BlockContainerImpl implements ICustomBlockState
|
||||||
@Override
|
@Override
|
||||||
@OnlyIn(Dist.CLIENT)
|
@OnlyIn(Dist.CLIENT)
|
||||||
public BlockColor getBlockColor() {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue