Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Updated for Bukkit changes.
Dieser Commit ist enthalten in:
Ursprung
f90e47da9a
Commit
3bbebcd64e
@ -316,4 +316,13 @@ public abstract class LocalWorld {
|
||||
*/
|
||||
@Override
|
||||
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() {
|
||||
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) {
|
||||
return editSession.getBlockType(new Vector(x, y, z));
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
return editSession.getWorld().getHeight();
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren