mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Fix super pickaxe region restrictions
This commit is contained in:
parent
e395c11572
commit
3f0fe44f72
@ -804,7 +804,10 @@ public class EditSession extends AbstractWorld implements HasFaweQueue, Lighting
|
||||
if (survivalExtent != null) {
|
||||
return survivalExtent.get();
|
||||
} else {
|
||||
return (SurvivalModeExtent) (this.extent = new SurvivalModeExtent(this.extent, getWorld()));
|
||||
AbstractDelegateExtent bypass = this.bypassAll;
|
||||
SurvivalModeExtent survival = new SurvivalModeExtent(bypass.getExtent(), getWorld());
|
||||
new ExtentTraverser(bypass).setNext(survival);
|
||||
return survival;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,14 +51,14 @@ public class SinglePickaxe implements BlockTool {
|
||||
editSession.getSurvivalExtent().setToolUse(config.superPickaxeDrop);
|
||||
|
||||
try {
|
||||
editSession.setBlock(clicked.getBlockX(), clicked.getBlockY(), clicked.getBlockZ(), EditSession.nullBlock);
|
||||
if (editSession.setBlock(clicked.getBlockX(), clicked.getBlockY(), clicked.getBlockZ(), EditSession.nullBlock)) {
|
||||
world.playEffect(clicked.toVector(), 2001, blockType);
|
||||
}
|
||||
} finally {
|
||||
editSession.flushQueue();
|
||||
session.remember(editSession);
|
||||
}
|
||||
|
||||
world.playEffect(clicked.toVector(), 2001, blockType);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user