mirror of
https://github.com/TeamMidnightDust/Puddles.git
synced 2025-12-16 03:55:09 +01:00
Puddles 1.2.0 - Update to 1.17, MidnightLib and configurable evaporation chance
This commit is contained in:
@@ -12,7 +12,6 @@ import java.util.Objects;
|
||||
|
||||
import static eu.midnightdust.puddles.Puddles.*;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class PuddlesClient implements ClientModInitializer {
|
||||
|
||||
@Override
|
||||
@@ -20,7 +19,7 @@ public class PuddlesClient implements ClientModInitializer {
|
||||
// Colored Puddle Items & Blocks
|
||||
ClientTickEvents.END_CLIENT_TICK.register(client -> {
|
||||
int waterColor;
|
||||
if (client.world != null) {
|
||||
if (client.world != null && client.player != null) {
|
||||
Biome biome = client.world.getBiome(client.player.getBlockPos());
|
||||
waterColor = biome.getWaterColor();
|
||||
} else waterColor = BuiltinBiomes.PLAINS.getWaterColor();
|
||||
|
||||
Reference in New Issue
Block a user