From 5f8d9e67a438eb6ea36c43a74c36e4cdbcecfcee Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 28 Oct 2012 19:44:15 -1000 Subject: [PATCH] Fixed: Newly created chunks create the HeightMap array with the correct byte order. --- infiniteworld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infiniteworld.py b/infiniteworld.py index 38d924a..fcb4da5 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -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)