Skip to content

Commit

Permalink
correction to comments mistakenly referring to 1.21.5
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Dec 3, 2024
1 parent 00bbea3 commit 1ae92a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public NBTCompound copy() {
}

public boolean getBoolean(String string) {
NBTByte nbtByte = this.getTagOfTypeOrNull(string, NBTByte.class);
NBTNumber nbtByte = this.getTagOfTypeOrNull(string, NBTNumber.class);
// Empty byte tags are considered 0
return nbtByte != null && nbtByte.getAsByte() != 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public enum Action {
UPDATE_DISPLAY_NAME,
/**
* Updates the order in which the player is listed in the tablist.<br>
* Added with 1.21.2.
* Added with 1.21.2
*/
UPDATE_LIST_ORDER,
/**
* Updates wether the outer skin layer (hat) of the player will be shown in tablist.<br>
* Added with 1.21.5.
* Updates whether the outer skin layer (hat) of the player will be shown in tablist.<br>
* Added with 1.21.4
*/
UPDATE_HAT;

Expand All @@ -75,7 +75,7 @@ public static class PlayerInfo {
*/
private int listOrder;
/**
* Added with 1.21.5
* Added with 1.21.4
*/
private boolean showHat;

Expand Down Expand Up @@ -159,7 +159,7 @@ public int getListOrder() {
}

/**
* Added with 1.21.5
* Added with 1.21.4
*/
public boolean isShowHat() {
return this.showHat;
Expand Down Expand Up @@ -197,7 +197,7 @@ public void setListOrder(int listOrder) {
}

/**
* Added with 1.21.5
* Added with 1.21.4
*/
public void setShowHat(boolean showHat) {
this.showHat = showHat;
Expand Down

0 comments on commit 1ae92a8

Please sign in to comment.