geforkt von Mirrors/FastAsyncWorldEdit
Check by setting blocks with BlockBagExtend for changed materials.
Dieser Commit ist enthalten in:
Ursprung
be0d21e2a9
Commit
a73faf0c8b
@ -86,6 +86,7 @@ public class BlockBagExtent extends AbstractDelegateExtent {
|
|||||||
if (blockBag != null) {
|
if (blockBag != null) {
|
||||||
BlockState existing = getExtent().getBlock(position);
|
BlockState existing = getExtent().getBlock(position);
|
||||||
|
|
||||||
|
if (!block.getBlockType().equals(existing.getBlockType())) {
|
||||||
if (!block.getBlockType().getMaterial().isAir()) {
|
if (!block.getBlockType().getMaterial().isAir()) {
|
||||||
try {
|
try {
|
||||||
blockBag.fetchPlacedBlock(block.toImmutableState());
|
blockBag.fetchPlacedBlock(block.toImmutableState());
|
||||||
@ -108,6 +109,7 @@ public class BlockBagExtent extends AbstractDelegateExtent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return super.setBlock(position, block);
|
return super.setBlock(position, block);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren