majestic53 / libanvil

A C++ library for reading and writing Minecraft "Anvil" files
GNU General Public License v3.0
30 stars 12 forks source link

TAG_Long (4) reads 4 bytes instead of 8 #1

Closed VoxelFarmMiguel closed 7 years ago

VoxelFarmMiguel commented 7 years ago

The parsing breaks when a TAG_Long (4) is encountered. This is because the current code reads a C++ "long" which is 4 bytes only. Should be using "long long".

majestic53 commented 7 years ago

Thanks! Bug is addressed in commit c51a6534a55c5d98cbd77bee452334f5bdc4b1ea