This commit is contained in:
Jesse Boyd 2018-01-25 14:58:47 +11:00
parent ad60b90987
commit 7136fb422e
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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