Fixed /editstack(air), fixed getLength()/getHeight() of WorldEditSession.

This commit is contained in:
sk89q
2010-10-05 21:08:52 -07:00
parent 35f46473de
commit c59d77e138
2 changed files with 16 additions and 11 deletions

View File

@@ -290,7 +290,7 @@ public class WorldEditSession {
* @throws IncompleteRegionException
*/
public int getLength() throws IncompleteRegionException {
return getUpperY() - getLowerY() + 1;
return getUpperZ() - getLowerZ() + 1;
}
/**
@@ -300,7 +300,7 @@ public class WorldEditSession {
* @throws IncompleteRegionException
*/
public int getHeight() throws IncompleteRegionException {
return getUpperZ() - getLowerZ() + 1;
return getUpperY() - getLowerY() + 1;
}
/**