mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-26 16:51:29 +01:00
Fix nesting - iterating over areas versus residences
This commit is contained in:
parent
47194defca
commit
95128df6b9
@ -17,6 +17,7 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||||||
})));
|
})));
|
||||||
|
|
||||||
boxLayers.push(boxLayer);
|
boxLayers.push(boxLayer);
|
||||||
|
});
|
||||||
$.each(residence.Subzones, function(szname, subzone) {
|
$.each(residence.Subzones, function(szname, subzone) {
|
||||||
$.each(subzone.Areas, function(name2, area2) {
|
$.each(subzone.Areas, function(name2, area2) {
|
||||||
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
||||||
@ -27,7 +28,6 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||||||
boxLayers.push(subzoneLayer);
|
boxLayers.push(subzoneLayer);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
configuration.result(new L.LayerGroup(boxLayers));
|
configuration.result(new L.LayerGroup(boxLayers));
|
||||||
|
Loading…
Reference in New Issue
Block a user