Track centers by layer instead of by world
This fixes a bug where a world with multiple layers with different "northdirection" values would initially load at the wrong center point because the center for the last layer would override prior values in the overview.collections.centers map.
This commit is contained in:
@@ -39,7 +39,7 @@ overviewer.collections = {
|
||||
|
||||
/**
|
||||
* When switching regionsets, where should we zoom to?
|
||||
* Defaults to spawn. Stored as map of world names to [latlng, zoom]
|
||||
* Defaults to spawn. Stored as map of maps: world names to layer names to [latlng, zoom]
|
||||
*/
|
||||
'centers': {},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user