mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Don't replace blocks if they have identical states already
This commit is contained in:
parent
be6bcafccc
commit
1522632f5a
@ -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 New Issue
Block a user