mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Updated for Bukkit changes.
This commit is contained in:
parent
f90e47da9a
commit
3bbebcd64e
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user