Skip to content

Commit

Permalink
Fix matchesVariant being backwords
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Feb 8, 2022
1 parent 3449901 commit 37b1504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ResourceLocation getLocation(char separator) {

@Override
public boolean matchesVariant(MaterialVariantId other) {
return sameVariant(other);
return this.equals(other.getId());
}

/* Helpers */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public boolean hasVariant() {

@Override
public boolean matchesVariant(MaterialVariantId other) {
return this.getId().equals(other.getId());
return this.sameVariant(other);
}

@Override
Expand Down

0 comments on commit 37b1504

Please sign in to comment.