allowed regions can be null

This commit is contained in:
dordsor21 2021-01-10 17:14:40 +00:00
parent febf5b0175
commit 846443291f
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 2 additions and 1 deletions

View File

@ -457,6 +457,7 @@ public class EditSessionBuilder {
return wnaMode; return wnaMode;
} }
@Nullable
public Region[] getAllowedRegions() { public Region[] getAllowedRegions() {
return allowedRegions; return allowedRegions;
} }

View File

@ -265,7 +265,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
this.blockBag = builder.getBlockBag(); this.blockBag = builder.getBlockBag();
this.history = changeSet != null; this.history = changeSet != null;
this.wnaMode = builder.isWNAMode(); this.wnaMode = builder.isWNAMode();
this.allowedRegions = builder.getAllowedRegions().clone(); this.allowedRegions = builder.getAllowedRegions() != null ? builder.getAllowedRegions().clone() : null;
} }
/** /**