Allow editing solely of tiles/entities/heightmaps (#1817)

Dieser Commit ist enthalten in:
Jordan 2022-06-19 00:58:54 +01:00 committet von GitHub
Ursprung 003cec30be
Commit 8e5204c311
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

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