Skip to content

Commit

Permalink
NBTApi - fix an error when nbt string contains "%"
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Aug 1, 2022
1 parent 0243de8 commit 978226c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/shanebeestudios/skbee/api/NBT/NBTApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ public static NBTCompound validateNBT(String nbtString) {
try {
compound = new NBTContainer(nbtString);
} catch (Exception ex) {
Util.skriptError("&cInvalid NBT: &7'&b" + nbtString + "&7'&c");
Util.skriptError("&cInvalid NBT: &7'&b%s&7'&c", nbtString);

if (DEBUG) {
ex.printStackTrace();
} else {
Util.skriptError("&cCause: &e" + ex.getMessage());
Util.skriptError("&cCause: &e%s", ex.getMessage());
}
return null;
}
Expand Down

0 comments on commit 978226c

Please sign in to comment.