From 73c5e340402772ae5a265f8e92ac7033707c18c9 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Thu, 13 Feb 2020 13:12:11 -0500 Subject: [PATCH] Fixed AsyncWorld for real --- .../fawe/bukkit/wrapper/AsyncWorld.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java index 379aa9e39..b5e88d5e3 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java @@ -254,7 +254,28 @@ public class AsyncWorld extends PassthroughExtent implements World { public AsyncBlock getHighestBlockAt(Location loc) { return getHighestBlockAt(loc.getBlockX(), loc.getBlockZ()); } - + + @Override + public int getHighestBlockYAt(int i, int i1, @NotNull HeightMap heightMap) { + return parent.getHighestBlockYAt(i,i1, heightMap); + } + + @Override + public int getHighestBlockYAt(@NotNull Location location, @NotNull HeightMap heightMap) { + return parent.getHighestBlockYAt(location, heightMap); + } + + @Override + public @NotNull Block getHighestBlockAt(int i, int i1, @NotNull HeightMap heightMap) { + return parent.getHighestBlockAt(i, i1, heightMap); + } + + @Override + public @NotNull Block getHighestBlockAt(@NotNull Location location, + @NotNull HeightMap heightMap) { + return parent.getHighestBlockAt(location, heightMap); + } + @Override public AsyncChunk getChunkAt(int x, int z) { return new AsyncChunk(this, x, z);