mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed the super pickaxe not working with bedrock and the recursive super pickaxe not working properly.
This commit is contained in:
parent
a444da5d68
commit
1e21124acd
@ -1566,7 +1566,7 @@ public class WorldEditListener extends PluginListener {
|
|||||||
WorldEditSession.SuperPickaxeMode.SINGLE) {
|
WorldEditSession.SuperPickaxeMode.SINGLE) {
|
||||||
Vector pos = new Vector(blockClicked.getX(),
|
Vector pos = new Vector(blockClicked.getX(),
|
||||||
blockClicked.getY(), blockClicked.getZ());
|
blockClicked.getY(), blockClicked.getZ());
|
||||||
if (ServerInterface.getBlockType(pos) == 7 && canBedrock) {
|
if (ServerInterface.getBlockType(pos) == 7 && !canBedrock) {
|
||||||
return true;
|
return true;
|
||||||
} else if (ServerInterface.getBlockType(pos) == 46) {
|
} else if (ServerInterface.getBlockType(pos) == 46) {
|
||||||
return false;
|
return false;
|
||||||
@ -1647,6 +1647,8 @@ public class WorldEditListener extends PluginListener {
|
|||||||
|
|
||||||
if (ServerInterface.getBlockType(pos) == initialType) {
|
if (ServerInterface.getBlockType(pos) == initialType) {
|
||||||
ServerInterface.setBlockType(pos, 0);
|
ServerInterface.setBlockType(pos, 0);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
recursiveSuperPickaxe(pos.add(1, 0, 0).toBlockVector(), origin, size,
|
recursiveSuperPickaxe(pos.add(1, 0, 0).toBlockVector(), origin, size,
|
||||||
|
Loading…
Reference in New Issue
Block a user