From 8e5204c31136d45409bc0b00d6583a193ae771d5 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 19 Jun 2022 00:58:54 +0100 Subject: [PATCH] Allow editing solely of tiles/entities/heightmaps (#1817) --- .../core/queue/implementation/blocks/CharSetBlocks.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java index d6a6d5a06..5f6062208 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/blocks/CharSetBlocks.java @@ -296,7 +296,13 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet { @Override public boolean isEmpty() { - if (biomes != null || light != null || skyLight != null) { + if (biomes != null + || light != null + || skyLight != null + || (entities != null && !entities.isEmpty()) + || (tiles != null && !tiles.isEmpty()) + || (entityRemoves != null && !entityRemoves.isEmpty()) + || (heightMaps != null && !heightMaps.isEmpty())) { return false; } //noinspection SimplifyStreamApiCallChains - this is faster than using #noneMatch