Fix logic error

This commit is contained in:
Five (Xer)
2020-06-07 00:33:06 +02:00
parent ef5b9cf183
commit 3ed5e7718c

View File

@@ -21,12 +21,12 @@ public final class DimensionInfo {
this.registryIdentifier = Preconditions.checkNotNull(
registryIdentifier, "registryIdentifier cannot be null");
Preconditions.checkArgument(
registryIdentifier.length() > 0 && registryIdentifier.isBlank(),
registryIdentifier.length() > 0 && !registryIdentifier.isBlank(),
"registryIdentifier cannot be empty");
this.levelName = Preconditions.checkNotNull(
levelName, "levelName cannot be null");
Preconditions.checkArgument(
levelName.length() > 0 && levelName.isBlank(),
levelName.length() > 0 && !levelName.isBlank(),
"registryIdentifier cannot be empty");
this.isFlat = isFlat;
this.isDebugType = isDebugType;