This commit is contained in:
Anuken
2024-01-12 15:13:11 -05:00
parent 1d3736cf82
commit b0cc7d2e85
3 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ public class Puddles{
/** Returns the Puddle on the specified tile. May return null. */
public static @Nullable Puddle get(Tile tile){
return world.tiles.getPuddle(tile.array());
return tile == null ? null : world.tiles.getPuddle(tile.array());
}
public static void deposit(Tile tile, Tile source, Liquid liquid, float amount, boolean initial){