Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Changes tabs to spaces, also removed extra boolean.
Dieser Commit ist enthalten in:
Ursprung
fce942e130
Commit
6b9dbe349a
@ -67,12 +67,8 @@ public class NavigationCommands {
|
|||||||
Boolean ascentDone = false;
|
Boolean ascentDone = false;
|
||||||
int ascentLevels = 1;
|
int ascentLevels = 1;
|
||||||
int levelsToAscend = args.getInteger(0);
|
int levelsToAscend = args.getInteger(0);
|
||||||
while (!ascentDone) {
|
while (player.ascendLevel() && levelsToAscend != ascentLevels) {
|
||||||
if (player.ascendLevel() && levelsToAscend != ascentLevels) {
|
|
||||||
ascentLevels++;
|
ascentLevels++;
|
||||||
} else {
|
|
||||||
ascentDone = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (ascentLevels == 0) {
|
if (ascentLevels == 0) {
|
||||||
player.printError("No free spot above you found.");
|
player.printError("No free spot above you found.");
|
||||||
@ -101,15 +97,10 @@ public class NavigationCommands {
|
|||||||
player.printError("No free spot above you found.");
|
player.printError("No free spot above you found.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Boolean descentDone = false;
|
|
||||||
int descentLevels = 1;
|
int descentLevels = 1;
|
||||||
int levelsToDescend = args.getInteger(0);
|
int levelsToDescend = args.getInteger(0);
|
||||||
while (!descentDone) {
|
while (player.descendLevel() && levelsToDescend != descentLevels) {
|
||||||
if (player.descendLevel() && levelsToDescend != descentLevels) {
|
|
||||||
descentLevels++;
|
descentLevels++;
|
||||||
} else {
|
|
||||||
descentDone = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (descentLevels == 0) {
|
if (descentLevels == 0) {
|
||||||
player.printError("No free spot above you found.");
|
player.printError("No free spot above you found.");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren