mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-01 06:33:38 +01:00
Fix off-by-one error on WG regions
This commit is contained in:
parent
7ba72941dc
commit
40e28749b8
@ -17,7 +17,7 @@ regionConstructors['WorldGuard'] = function(dynmap, configuration) {
|
|||||||
return null;
|
return null;
|
||||||
if(region.max.y <= region.min.y)
|
if(region.max.y <= region.min.y)
|
||||||
region.min.y = region.max.y - 1;
|
region.min.y = region.max.y - 1;
|
||||||
return boxCreator(region.max.x, region.min.x, region.max.y, region.min.y, region.max.z, region.min.z, configuration.getStyle(name));
|
return boxCreator(region.max.x+1, region.min.x, region.max.y, region.min.y, region.max.z+1, region.min.z, configuration.getStyle(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
function createOutlineFromRegion(name, region, outCreator) {
|
function createOutlineFromRegion(name, region, outCreator) {
|
||||||
|
Loading…
Reference in New Issue
Block a user