From 46d24fff0f4728d90946b56b55d1634181b2e23c Mon Sep 17 00:00:00 2001 From: IronApollo Date: Thu, 26 Mar 2020 17:11:07 -0400 Subject: [PATCH] Update AsyncWorld.java --- .../java/com/boydti/fawe/bukkit/wrapper/AsyncWorld.java | 6 ++++++ 1 file changed, 6 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 1a2476d0a..d451c5625 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 @@ -45,6 +45,7 @@ import org.bukkit.WorldType; import org.bukkit.block.Biome; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; +import org.bukkit.boss.DragonBattle; import org.bukkit.entity.AbstractArrow; import org.bukkit.entity.Arrow; import org.bukkit.entity.Entity; @@ -1198,6 +1199,11 @@ public class AsyncWorld extends PassthroughExtent implements World { return TaskManager.IMP.sync(() -> parent.getEntity(uuid)); } + @Nullable + @Override + public DragonBattle getEnderDragonBattle() { + return TaskManager.IMP.sync(() -> parent.getEnderDragonBattle()); + } @Override public boolean createExplosion(Entity source, Location loc, float power, boolean setFire, boolean breakBlocks) {