mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-05 00:53:42 +01:00
Fixes #898
This commit is contained in:
parent
ad60b90987
commit
7136fb422e
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user