From f43d18915d390a8864df23016e578b170bd035b2 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 4 Mar 2022 08:12:00 +1100 Subject: [PATCH] #1022: Fix get HighestBlockAt in chunk snapshot By: Yannick Lamprecht --- .../main/java/org/bukkit/craftbukkit/CraftChunkSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunkSnapshot.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunkSnapshot.java index 1d45ca4d9a..baa8e947c2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunkSnapshot.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftChunkSnapshot.java @@ -122,7 +122,7 @@ public class CraftChunkSnapshot implements ChunkSnapshot { Preconditions.checkState(hmap != null, "ChunkSnapshot created without height map. Please call getSnapshot with includeMaxblocky=true"); validateChunkCoordinates(x, 0, z); - return hmap.getFirstAvailable(x, z); + return hmap.getHighestTaken(x, z); } @Override