From 1bdac416d055c8b9c71558024c0e091f63a28a8a Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Wed, 2 Dec 2020 17:12:04 +0100 Subject: [PATCH] Add missing upstream methods --- .../boydti/fawe/bukkit/wrapper/AsyncBlock.java | 7 ++++++- .../boydti/fawe/bukkit/wrapper/AsyncWorld.java | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncBlock.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncBlock.java index 1f5c73c05..59c2dc706 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncBlock.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/wrapper/AsyncBlock.java @@ -398,13 +398,18 @@ public class AsyncBlock implements Block { } public boolean applyBoneMeal(@NotNull BlockFace face) { - throw new UnsupportedOperationException("FAWE does not support this method"); + throw new UnsupportedOperationException("FAWE does not support this yet"); } public String getTranslationKey() { throw new UnsupportedOperationException("FAWE does not support this yet"); } + @NotNull + @Override + public float getDestroySpeed(@NotNull ItemStack itemStack) { + throw new UnsupportedOperationException("FAWE does not support this yet"); + } @NotNull @Override 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 8b230cb44..69ae9b7b6 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 @@ -649,6 +649,21 @@ public class AsyncWorld extends PassthroughExtent implements World { parent.setThunderDuration(duration); } + @Override + public boolean isClearWeather() { + return parent.isClearWeather(); + } + + @Override + public void setClearWeatherDuration(int duration) { + parent.setClearWeatherDuration(duration); + } + + @Override + public int getClearWeatherDuration() { + return parent.getClearWeatherDuration(); + } + @Override public boolean createExplosion(double x, double y, double z, float power) { return this.createExplosion(x, y, z, power, false, true);