3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-29 02:21:06 +02:00

Add null check to Heightmap processor "just in case"

Fixes #1592
Dieser Commit ist enthalten in:
dordsor21 2022-02-16 18:55:52 +00:00 committet von Jordan
Ursprung f8e6feb1f2
Commit f60aa0b418

Datei anzeigen

@ -86,8 +86,9 @@ public class HeightmapProcessor implements IBatchProcessor {
} else if (getSection == null) {
getSection = get.load(layer);
// skip empty layer
if (Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096)
|| Arrays.equals(getSection, AIR_LAYER)) {
if (getSection == null ||
Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096) ||
Arrays.equals(getSection, AIR_LAYER)) {
hasSectionGet = false;
if (!hasSectionSet) {
continue layer;