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:
committed by
Aaron Griffith
parent
087d597ed0
commit
3e1ae9dd17
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user