PrismarineJS / node-mojangson

A mojangson parser written in node.js
17 stars 9 forks source link

Int, Long and Byte-Arrays are incorrectly simplified #45

Open Lianecx opened 1 year ago

Lianecx commented 1 year ago

Input: String: [B;1b,2b,3b,] Parsed: { type: 'byteArray', value: { type: 'byte', value: [ 1, 2, 3 ] } }

Expected: [1, 2, 3]

Actual: { type: 'byte', value: [ 1, 2, 3 ] }