Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 19:10:07 +01:00
Updated for Bukkit changes.
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren