Skip to content

Commit ae71f15

Browse files
committed
add number suffix for integer
1 parent 4072f62 commit ae71f15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nbt/src/main/java/io/github/projectunified/craftitem/nbt/NBTMapNormalizer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ private static Number tryParseNumberWithSuffix(String str) {
107107
case 'd':
108108
case 'D':
109109
return Double.parseDouble(numPart);
110+
case 'i':
111+
case 'I':
112+
return Integer.parseInt(numPart);
110113
}
111114
} catch (NumberFormatException e) {
112115
// Not a valid number with this suffix

0 commit comments

Comments
 (0)