From d0784287b83da6d63eb930bf7ca78c9a82e54c45 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 19 Feb 2012 16:39:56 -1000 Subject: [PATCH] Create new Anvil chunks with a TAG_Int_Array for the HeightMap array --- infiniteworld.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/infiniteworld.py b/infiniteworld.py index 623435e..17ffe67 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -1104,12 +1104,8 @@ class AnvilChunk(InfdevChunk): self._SkyLight = zeros((16, 16, self.world.Height), uint8) self._SkyLight[:] = 15 - if self.world.Height <= 256: - levelTag[HeightMap] = TAG_Byte_Array() - levelTag[HeightMap].value = zeros((16, 16), uint8) - else: - levelTag[HeightMap] = TAG_Int_Array() - levelTag[HeightMap].value = zeros((16, 16), uint32).newbyteorder() + levelTag[HeightMap] = TAG_Int_Array() + levelTag[HeightMap].value = zeros((16, 16), uint32).newbyteorder() levelTag[Entities] = TAG_List()