mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Check by setting blocks with BlockBagExtend for changed materials.
This commit is contained in:
parent
be0d21e2a9
commit
a73faf0c8b
@ -86,6 +86,7 @@ public class BlockBagExtent extends AbstractDelegateExtent {
|
||||
if (blockBag != null) {
|
||||
BlockState existing = getExtent().getBlock(position);
|
||||
|
||||
if (!block.getBlockType().equals(existing.getBlockType())) {
|
||||
if (!block.getBlockType().getMaterial().isAir()) {
|
||||
try {
|
||||
blockBag.fetchPlacedBlock(block.toImmutableState());
|
||||
@ -108,6 +109,7 @@ public class BlockBagExtent extends AbstractDelegateExtent {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return super.setBlock(position, block);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user