Skip to content

Commit

Permalink
Fixed Beautiful NBT showing values inside short and byte arrays as do…
Browse files Browse the repository at this point in the history
…ubles
  • Loading branch information
Pedro270707 committed Mar 26, 2024
1 parent 9920970 commit cde0c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/pedroricardo/commander/BeautifulNbt.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ private static String collection(Object o) {
boolean comma = false;
if (o instanceof byte[]) {
result.append("B; ");
for (double element : ((byte[])o)) {
for (byte element : ((byte[])o)) {
if (comma) result.append(", ");
result.append(element(element));
comma = true;
}
} else if (o instanceof short[]) {
result.append("S; ");
for (double element : ((short[])o)) {
for (short element : ((short[])o)) {
if (comma) result.append(", ");
result.append(element(element));
comma = true;
Expand Down

0 comments on commit cde0c64

Please sign in to comment.