Skip to content

Commit

Permalink
Slight fix with hail
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Dec 23, 2023
1 parent 06eda62 commit b98242b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private boolean meltAndFreeze(ServerLevel level, int x, int z) {

if (isHailing(temp, precip, thunder)) {
if (level.random.nextFloat() < 0.4 * precip) {
BlockPos hailSurface = level.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, level.getBlockRandomPos(x, 0, z, 15)).below();
BlockPos hailSurface = level.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, waterySurface).below();
if (tryHailBreak(level, hailSurface.above())) {
tryHailBreak(level, hailSurface);
}
Expand Down

0 comments on commit b98242b

Please sign in to comment.