0

Store north-direction in overviewer.dat

Check stored value at render time and abort if direction has changed and
--forcerender not specified.
Addresses concerns from pull request #458
This commit is contained in:
Thomas Lake
2011-08-17 17:49:22 -04:00
committed by Aaron Griffith
parent 087d597ed0
commit 3e1ae9dd17
3 changed files with 12 additions and 2 deletions

View File

@@ -135,9 +135,11 @@ class World(object):
if os.path.exists(self.pickleFile):
with open(self.pickleFile,"rb") as p:
self.persistentData = cPickle.load(p)
if not self.persistentData.get('north_direction', False):
self.persistentData['north_direction']=='lower-left'
else:
# some defaults
self.persistentData = dict(POI=[])
self.persistentData = dict(POI=[], north_direction=self.north_direction)
def get_region_path(self, chunkX, chunkY):