Start work on server-side saving worlds
This commit includes a a few more changes because I'm too lazy to clean them up: - fix chunk modification times - improve command line arguments - load multiple chunks at once
This commit is contained in:
parent
e7f85ff421
commit
9e5b5f874a
6 changed files with 195 additions and 47 deletions
1
maps.py
1
maps.py
|
|
@ -144,6 +144,7 @@ class Map():
|
|||
def delete(self):
|
||||
with self.chunkpool as pool:
|
||||
chunk = pool.get(Position(chunkx(self.cursorx-1), chunky(self.cursory)))
|
||||
|
||||
if chunk:
|
||||
chunk.delete(inchunkx(self.cursorx-1), inchunky(self.cursory))
|
||||
pool.save_changes_delayed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue