Skip to content

Commit

Permalink
Minor minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed May 23, 2024
1 parent 377eb07 commit ec3327e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public int valuesCount() {
public int indexOf(String value) {
int index = this.values.indexOf(value);
if (index == -1) {
throw new IllegalStateException("Property " + this + " does not have value " + value);
throw new IllegalArgumentException("Property " + this + " does not have value " + value);
}
return index;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class BlockState {
private final Block block;
private final int javaId;
/**
* The values of each property of this block state. These should be treated as keys to {@link Block#propertyKeys()}
* The values of each property of this block state. These should be treated as keys to {@link Block#propertyKeys()}.
* Of note - the comparable part probably doesn't do anything because we occasionally use strings in place of enums.
* Will be null if there's only one block state for a block.
*/
Expand Down Expand Up @@ -135,7 +135,7 @@ public <T extends Comparable<T>> BlockState withValue(Property<T> property, T va
// The above for loop will always stop at the first break because the last property has already been found
diff = 1;
}
return BlockState.of(this.javaId + ((thatOffset - thisOffset) * diff));
return of(this.javaId + ((thatOffset - thisOffset) * diff));
}

public Block block() {
Expand Down

0 comments on commit ec3327e

Please sign in to comment.