From 87fe1a2a2115ddabbf795a2a0943f4caa41f1662 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 26 Aug 2020 00:23:01 +1200 Subject: [PATCH] Fix builds for paper 1.16.2 --- .../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 63b98efb8..f6886b500 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 @@ -60,6 +60,7 @@ import org.bukkit.util.RayTraceResult; import org.bukkit.util.Vector; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import io.papermc.paper.world.MoonPhase; import java.io.File; import java.util.Collection; @@ -527,6 +528,16 @@ public class AsyncWorld extends PassthroughExtent implements World { return TaskManager.IMP.sync(() -> parent.setSpawnLocation(x, y, z)); } + @Override + public boolean setSpawnLocation(final int x, final int y, final int z, final float angle) { + return TaskManager.IMP.sync(() -> parent.setSpawnLocation(x, y, z, angle)); + } + + @Override + public @NotNull MoonPhase getMoonPhase() { + return parent.getMoonPhase(); + } + @Override public long getTime() { return parent.getTime();