mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-18 14:44:07 +08:00
Fix logic error
This commit is contained in:
parent
ef5b9cf183
commit
3ed5e7718c
@ -21,12 +21,12 @@ public final class DimensionInfo {
|
|||||||
this.registryIdentifier = Preconditions.checkNotNull(
|
this.registryIdentifier = Preconditions.checkNotNull(
|
||||||
registryIdentifier, "registryIdentifier cannot be null");
|
registryIdentifier, "registryIdentifier cannot be null");
|
||||||
Preconditions.checkArgument(
|
Preconditions.checkArgument(
|
||||||
registryIdentifier.length() > 0 && registryIdentifier.isBlank(),
|
registryIdentifier.length() > 0 && !registryIdentifier.isBlank(),
|
||||||
"registryIdentifier cannot be empty");
|
"registryIdentifier cannot be empty");
|
||||||
this.levelName = Preconditions.checkNotNull(
|
this.levelName = Preconditions.checkNotNull(
|
||||||
levelName, "levelName cannot be null");
|
levelName, "levelName cannot be null");
|
||||||
Preconditions.checkArgument(
|
Preconditions.checkArgument(
|
||||||
levelName.length() > 0 && levelName.isBlank(),
|
levelName.length() > 0 && !levelName.isBlank(),
|
||||||
"registryIdentifier cannot be empty");
|
"registryIdentifier cannot be empty");
|
||||||
this.isFlat = isFlat;
|
this.isFlat = isFlat;
|
||||||
this.isDebugType = isDebugType;
|
this.isDebugType = isDebugType;
|
||||||
|
Loading…
Reference in New Issue
Block a user