Fixed: Newly created chunks create the HeightMap array with the correct byte order.

This commit is contained in:
David Vierra 2012-10-28 19:44:15 -10:00
parent 4629531703
commit 5f8d9e67a4

View File

@ -123,7 +123,7 @@ class AnvilChunk(LightedChunk):
levelTag = nbt.TAG_Compound()
chunkTag["Level"] = levelTag
levelTag["HeightMap"] = nbt.TAG_Int_Array(zeros((16, 16), 'uint32'))
levelTag["HeightMap"] = nbt.TAG_Int_Array(zeros((16, 16), 'uint32').newbyteorder())
levelTag["TerrainPopulated"] = nbt.TAG_Byte(1)
levelTag["xPos"] = nbt.TAG_Int(cx)
levelTag["zPos"] = nbt.TAG_Int(cz)