From b1c11c95974c0b0034268599b23b8eb8183b3c21 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 12 Feb 2020 17:46:07 -0500 Subject: [PATCH] Implement new World interface methods --- .../com/boydti/fawe/bukkit/wrapper/AsyncWorld.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 d18ff7cb9..9c68df8bd 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 @@ -4,6 +4,7 @@ import com.boydti.fawe.FaweAPI; import com.boydti.fawe.object.RunnableVal; import com.boydti.fawe.util.StringMan; import com.boydti.fawe.util.TaskManager; +import com.destroystokyo.paper.HeightmapType; import com.sk89q.worldedit.bukkit.BukkitWorld; import com.sk89q.worldedit.bukkit.WorldEditPlugin; import com.sk89q.worldedit.bukkit.adapter.BukkitImplAdapter; @@ -1210,4 +1211,16 @@ public class AsyncWorld extends PassthroughExtent implements World { boolean force) { parent.spawnParticle(particle, location, count, offsetX, offsetY, offsetZ, extra, data, force); } + + @Override + public int getHighestBlockYAt(@NotNull Location location, @NotNull HeightmapType heightmap) + throws UnsupportedOperationException { + return parent.getHighestBlockYAt(location, heightmap); + } + + @Override + public @NotNull Block getHighestBlockAt(int x, int z, @NotNull HeightmapType heightmap) + throws UnsupportedOperationException { + return parent.getHighestBlockAt(x, z, heightmap); + } }