From 7136fb422eb0b3a82c409b57b4393664ee86b06b Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 25 Jan 2018 14:58:47 +1100 Subject: [PATCH] Fixes #898 --- .../java/com/sk89q/worldedit/command/WorldEditCommands.java | 2 +- .../main/java/com/boydti/fawe/nukkit/core/NukkitWorld.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java b/core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java index 890aa731..083b560f 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java @@ -135,7 +135,7 @@ public class WorldEditCommands { changes = scanner.useDelimiter("\\A").next(); } } - changes = changes.replaceAll("#([0-9]+)", "github.com/boy0001/FastAsyncWorldedit/pulls/$1"); + changes = changes.replaceAll("#([0-9]+)", "github.com/boy0001/FastAsyncWorldedit/issues/$1"); actor.print(BBC.getPrefix() + changes); } catch (IOException e) { throw new RuntimeException(e); diff --git a/nukkit/src/main/java/com/boydti/fawe/nukkit/core/NukkitWorld.java b/nukkit/src/main/java/com/boydti/fawe/nukkit/core/NukkitWorld.java index 7fd9df10..320e2a94 100644 --- a/nukkit/src/main/java/com/boydti/fawe/nukkit/core/NukkitWorld.java +++ b/nukkit/src/main/java/com/boydti/fawe/nukkit/core/NukkitWorld.java @@ -5,6 +5,7 @@ import cn.nukkit.blockentity.BlockEntityChest; import cn.nukkit.entity.Entity; import cn.nukkit.inventory.InventoryHolder; import cn.nukkit.item.Item; +import cn.nukkit.item.ItemPickaxeDiamond; import cn.nukkit.level.Level; import cn.nukkit.math.Vector3; import com.sk89q.worldedit.BlockVector2D; @@ -267,7 +268,7 @@ public class NukkitWorld extends LocalWorld { @Override public boolean playEffect(Vector position, int type, int data) { - throw new UnsupportedOperationException("Not implemented yet"); + return false; } @Override @@ -277,7 +278,8 @@ public class NukkitWorld extends LocalWorld { @Override public void simulateBlockMine(Vector pt) { - getLevel().getBlock(setMutable(pt)).onBreak(null); + ItemPickaxeDiamond item = new ItemPickaxeDiamond(Integer.MAX_VALUE); + getLevel().useBreakOn(setMutable(pt), item, null, true); } @Override