mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Merge pull request #345 from mikeprimm/master
Fix nesting on residence subzones
This commit is contained in:
commit
181e3dccbd
@ -17,15 +17,15 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||||||
})));
|
})));
|
||||||
|
|
||||||
boxLayers.push(boxLayer);
|
boxLayers.push(boxLayer);
|
||||||
$.each(residence.Subzones, function(szname, subzone) {
|
});
|
||||||
$.each(subzone.Areas, function(name2, area2) {
|
$.each(residence.Subzones, function(szname, subzone) {
|
||||||
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
$.each(subzone.Areas, function(name2, area2) {
|
||||||
subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, {
|
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
||||||
owners: { players: [subzone.Permissions.Owner] },
|
subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, {
|
||||||
flags: subzone.Permissions.AreaFlags
|
owners: { players: [subzone.Permissions.Owner] },
|
||||||
})));
|
flags: subzone.Permissions.AreaFlags
|
||||||
boxLayers.push(subzoneLayer);
|
})));
|
||||||
});
|
boxLayers.push(subzoneLayer);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user