From e7f85ff421bf1af28ad8f31f41b38ae58f77f308 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 15 Apr 2017 22:09:32 +0000 Subject: [PATCH] Show normal chunks in the visible part of the chunkmap --- maps.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/maps.py b/maps.py index 30ba597..354c1d8 100644 --- a/maps.py +++ b/maps.py @@ -297,17 +297,14 @@ class ChunkMap(): def type_of(self, pos, chunk): if chunk.modified(): return "modified" - - if pos in self.map_.visible_chunk_coords(): - return "visible" - - if self.map_._unload_condition(pos, chunk): + elif self.map_._unload_condition(pos, chunk): return "unload" - - if chunk.empty(): + elif not chunk.empty(): + return "normal" + elif pos in self.map_.visible_chunk_coords(): + return "visible" + else: return "empty" - - return "normal" #def move(self, x, y, corner): #pass