Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Masks are now checked in setBlock instead of rawSetBlock.
Untested!!!
Dieser Commit ist enthalten in:
Ursprung
69bcaa7133
Commit
803b4df72e
@ -190,12 +190,6 @@ public class EditSession {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mask != null) {
|
|
||||||
if (!mask.matches(this, pt)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final int existing = world.getBlockType(pt);
|
final int existing = world.getBlockType(pt);
|
||||||
|
|
||||||
// Clear the container block so that it doesn't drop items
|
// Clear the container block so that it doesn't drop items
|
||||||
@ -259,6 +253,12 @@ public class EditSession {
|
|||||||
throws MaxChangedBlocksException {
|
throws MaxChangedBlocksException {
|
||||||
BlockVector blockPt = pt.toBlockVector();
|
BlockVector blockPt = pt.toBlockVector();
|
||||||
|
|
||||||
|
if (mask != null) {
|
||||||
|
if (!mask.matches(this, blockPt)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if (!original.containsKey(blockPt)) {
|
// if (!original.containsKey(blockPt)) {
|
||||||
original.put(blockPt, getBlock(pt));
|
original.put(blockPt, getBlock(pt));
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren