Show normal chunks in the visible part of the chunkmap
This commit is contained in:
parent
9974c09852
commit
e7f85ff421
1 changed files with 6 additions and 9 deletions
15
maps.py
15
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():
|
||||
return "empty"
|
||||
|
||||
elif not chunk.empty():
|
||||
return "normal"
|
||||
elif pos in self.map_.visible_chunk_coords():
|
||||
return "visible"
|
||||
else:
|
||||
return "empty"
|
||||
|
||||
#def move(self, x, y, corner):
|
||||
#pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue