mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-11-09 05:25:00 +01:00
Don't replace blocks if they have identical states already
This commit is contained in:
@@ -114,7 +114,8 @@ public class BukkitLocalQueue extends BasicLocalBlockQueue {
|
||||
BlockData blockData = BukkitAdapter.adapt(block);
|
||||
|
||||
Block existing = chunk.getBlock(x, y, z);
|
||||
if (BukkitBlockUtil.get(existing).equals(block) && existing
|
||||
final BlockState existingBaseBlock = BukkitAdapter.adapt(existing.getBlockData());
|
||||
if (BukkitBlockUtil.get(existing).equals(existingBaseBlock) && existing
|
||||
.getBlockData().matches(blockData)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user