3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

/ascend, /descend, and /unstuck clamp initial Y to >= 0 now.

Dieser Commit ist enthalten in:
sk89q 2010-11-06 01:28:45 -07:00
Ursprung fd86ae8f6e
Commit 7106783581

Datei anzeigen

@ -69,7 +69,7 @@ public class WorldEditPlayer {
*/
public void findFreePosition(Vector searchPos) {
int x = searchPos.getBlockX();
int y = searchPos.getBlockY();
int y = Math.max(0, searchPos.getBlockY());
int origY = y;
int z = searchPos.getBlockZ();
@ -111,7 +111,7 @@ public class WorldEditPlayer {
public boolean ascendLevel() {
Vector pos = getBlockIn();
int x = pos.getBlockX();
int y = pos.getBlockY();
int y = Math.max(0, pos.getBlockY());
int z = pos.getBlockZ();
byte free = 0;
@ -153,7 +153,7 @@ public class WorldEditPlayer {
public boolean descendLevel() {
Vector pos = getBlockIn();
int x = pos.getBlockX();
int y = pos.getBlockY() - 1;
int y = Math.max(0, pos.getBlockY() - 1);
int z = pos.getBlockZ();
byte free = 0;
@ -200,8 +200,8 @@ public class WorldEditPlayer {
public boolean ascendToCeiling(int clearance) {
Vector pos = getBlockIn();
int x = pos.getBlockX();
int initialY = pos.getBlockY();
int y = pos.getBlockY() + 2;
int initialY = Math.max(0, pos.getBlockY());
int y = Math.max(0, pos.getBlockY() + 2);
int z = pos.getBlockZ();
// No free space above