mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +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
|
||||
@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