Skip to content

Commit

Permalink
Fixed stupidness
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed May 7, 2020
1 parent 179be88 commit 79ec401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ProfileBuilder complete(boolean complete) {

@NotNull
public Profile build() {
if (this.name == null || this.uniqueId == null) {
if (this.name == null && this.uniqueId == null) {
throw new IllegalStateException("Either name or unique id has to be given");
}

Expand Down

0 comments on commit 79ec401

Please sign in to comment.