Updated for Bukkit changes.

This commit is contained in:
zml2008 2011-09-24 15:44:54 -07:00
parent f90e47da9a
commit 3bbebcd64e
3 changed files with 18 additions and 0 deletions

View File

@ -316,4 +316,13 @@ public abstract class LocalWorld {
*/ */
@Override @Override
public abstract int hashCode(); public abstract int hashCode();
/**
* Get the world's height
*
* @return
*/
public int getHeight() {
return 127;
}
} }

View File

@ -699,4 +699,9 @@ public class BukkitWorld extends LocalWorld {
public int hashCode() { public int hashCode() {
return world.hashCode(); return world.hashCode();
} }
@Override
public int getHeight() {
return world.getMaxHeight() - 1;
}
} }

View File

@ -56,4 +56,8 @@ public class EditSessionBlockChangeDelegate implements BlockChangeDelegate {
public int getTypeId(int x, int y, int z) { public int getTypeId(int x, int y, int z) {
return editSession.getBlockType(new Vector(x, y, z)); return editSession.getBlockType(new Vector(x, y, z));
} }
public int getHeight() {
return editSession.getWorld().getHeight();
}
} }