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):
|
def type_of(self, pos, chunk):
|
||||||
if chunk.modified():
|
if chunk.modified():
|
||||||
return "modified"
|
return "modified"
|
||||||
|
elif self.map_._unload_condition(pos, chunk):
|
||||||
if pos in self.map_.visible_chunk_coords():
|
|
||||||
return "visible"
|
|
||||||
|
|
||||||
if self.map_._unload_condition(pos, chunk):
|
|
||||||
return "unload"
|
return "unload"
|
||||||
|
elif not chunk.empty():
|
||||||
if chunk.empty():
|
|
||||||
return "empty"
|
|
||||||
|
|
||||||
return "normal"
|
return "normal"
|
||||||
|
elif pos in self.map_.visible_chunk_coords():
|
||||||
|
return "visible"
|
||||||
|
else:
|
||||||
|
return "empty"
|
||||||
|
|
||||||
#def move(self, x, y, corner):
|
#def move(self, x, y, corner):
|
||||||
#pass
|
#pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue