mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 08:18:35 +00:00
Add loadIfPresent method for use where the section should definitely exist and be FULL
This commit is contained in:
@ -61,8 +61,9 @@ public class HeightmapProcessor implements IBatchProcessor {
|
||||
if (!(hasSectionSet || hasSectionGet)) {
|
||||
continue;
|
||||
}
|
||||
char[] setSection = hasSectionSet ? set.load(layer) : null;
|
||||
if (Arrays.equals(setSection, FaweCache.IMP.EMPTY_CHAR_4096) || Arrays.equals(setSection, AIR_LAYER)) {
|
||||
char[] setSection = hasSectionSet ? set.loadIfPresent(layer) : null;
|
||||
if (setSection == null || Arrays.equals(setSection, FaweCache.IMP.EMPTY_CHAR_4096) ||
|
||||
Arrays.equals(setSection, AIR_LAYER)) {
|
||||
hasSectionSet = false;
|
||||
}
|
||||
if (!hasSectionSet && !hasSectionGet) {
|
||||
|
Reference in New Issue
Block a user