Update AsyncWorld.java

This commit is contained in:
IronApollo 2020-03-26 17:11:07 -04:00
parent fa738504a8
commit 46d24fff0f

View File

@ -45,6 +45,7 @@ import org.bukkit.WorldType;
import org.bukkit.block.Biome; import org.bukkit.block.Biome;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.data.BlockData; import org.bukkit.block.data.BlockData;
import org.bukkit.boss.DragonBattle;
import org.bukkit.entity.AbstractArrow; import org.bukkit.entity.AbstractArrow;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
@ -1198,6 +1199,11 @@ public class AsyncWorld extends PassthroughExtent implements World {
return TaskManager.IMP.sync(() -> parent.getEntity(uuid)); return TaskManager.IMP.sync(() -> parent.getEntity(uuid));
} }
@Nullable
@Override
public DragonBattle getEnderDragonBattle() {
return TaskManager.IMP.sync(() -> parent.getEnderDragonBattle());
}
@Override @Override
public boolean createExplosion(Entity source, Location loc, float power, boolean setFire, boolean breakBlocks) { public boolean createExplosion(Entity source, Location loc, float power, boolean setFire, boolean breakBlocks) {