Don't replace blocks if they have identical states already

This commit is contained in:
Alexander Söderberg 2020-04-08 02:02:20 +02:00
parent be6bcafccc
commit 1522632f5a

View file

@ -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;
}