Skip to content

Commit

Permalink
Allow smaller number types
Browse files Browse the repository at this point in the history
  • Loading branch information
fxshlein committed Dec 10, 2023
1 parent 5c77d66 commit d115575
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ abstract class NBTReader(

fun numberType(): NumberType {
return when (readValue) {
is Byte -> NumberType.INT
is Short -> NumberType.INT
is Int -> NumberType.INT
is Long -> NumberType.LONG
is Float -> NumberType.FLOAT
Expand Down

0 comments on commit d115575

Please sign in to comment.