From 03f0a2a62d1dea1d59f3bbd2c43a0718c73a7cb9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 15 Apr 2019 01:45:17 +1000 Subject: [PATCH] Update to latest paper --- .../com/boydti/fawe/bukkit/wrapper/AsyncWorld.java | 11 +++++++++++ 1 file changed, 11 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 4b8d60ba4..269cf41ab 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 @@ -1,5 +1,6 @@ package com.boydti.fawe.bukkit.wrapper; +import com.avaje.ebean.validation.NotNull; import com.boydti.fawe.FaweAPI; import com.boydti.fawe.bukkit.v0.BukkitQueue_0; import com.boydti.fawe.object.FaweQueue; @@ -20,6 +21,7 @@ import java.util.Set; import java.util.UUID; import java.util.concurrent.CompletableFuture; import java.util.function.Predicate; +import java.util.function.Supplier; import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockTypes; @@ -183,6 +185,15 @@ public class AsyncWorld extends DelegateFaweQueue implements World, HasFaweQueue } } + public int getHighestBlockYAt(int x, int z, com.destroystokyo.paper.HeightmapType heightmap) throws UnsupportedOperationException { + return TaskManager.IMP.sync(new Supplier() { + @Override + public Integer get() { + return parent.getHighestBlockYAt(x, z, heightmap); + } + }); + } + @Override public WorldBorder getWorldBorder() { return TaskManager.IMP.sync(new RunnableVal() {