macfreek/NBT — comment on commit 356d29e057a92d4c829b121cc09ef10277d195f2
File:  line 0
By macfreek:

Two errors. BlockArray.dataList is internally stored as 16384 bytes, at least, that is what chunk_data['Data'].value provides, and what is assumed by get_all_data() and get_data(). However, the empty dataList was created as 32768 bytes, and the length byte in a buffer is likely NOT 8192 (as current code yields), but either 16384 (number of bytes) or 32768 (number of 4-bit entries). Since I could not find the specs for this length field, I *assume* it is number of bytes, not number of 4-bit entries.