Handle saving changes separate from cleaning up
This commit is contained in:
parent
23da1ea5d9
commit
e3b599eee1
2 changed files with 2 additions and 2 deletions
2
maps.py
2
maps.py
|
|
@ -83,7 +83,7 @@ class Map():
|
|||
yend = ystart + chunky(self.height)+2 + 2*self.chunkunload
|
||||
|
||||
in_range = pos.x >= xstart and pos.x < xend and pos.y >= ystart and pos.y < yend
|
||||
return not in_range
|
||||
return not in_range and not chunk.modified()
|
||||
|
||||
def load_visible(self):
|
||||
with self.chunkpool as pool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue