mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Don't replace blocks if they have identical states already
This commit is contained in:
parent
be6bcafccc
commit
1522632f5a
1 changed files with 2 additions and 1 deletions
|
@ -114,7 +114,8 @@ public class BukkitLocalQueue extends BasicLocalBlockQueue {
|
||||||
BlockData blockData = BukkitAdapter.adapt(block);
|
BlockData blockData = BukkitAdapter.adapt(block);
|
||||||
|
|
||||||
Block existing = chunk.getBlock(x, y, z);
|
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)) {
|
.getBlockData().matches(blockData)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue