mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-20 02:45:00 +00:00
Changes tabs to spaces, also removed extra boolean.
This commit is contained in:
parent
fce942e130
commit
6b9dbe349a
@ -67,12 +67,8 @@ public class NavigationCommands {
|
||||
Boolean ascentDone = false;
|
||||
int ascentLevels = 1;
|
||||
int levelsToAscend = args.getInteger(0);
|
||||
while (!ascentDone) {
|
||||
if (player.ascendLevel() && levelsToAscend != ascentLevels) {
|
||||
while (player.ascendLevel() && levelsToAscend != ascentLevels) {
|
||||
ascentLevels++;
|
||||
} else {
|
||||
ascentDone = true;
|
||||
}
|
||||
}
|
||||
if (ascentLevels == 0) {
|
||||
player.printError("No free spot above you found.");
|
||||
@ -101,15 +97,10 @@ public class NavigationCommands {
|
||||
player.printError("No free spot above you found.");
|
||||
}
|
||||
} else {
|
||||
Boolean descentDone = false;
|
||||
int descentLevels = 1;
|
||||
int levelsToDescend = args.getInteger(0);
|
||||
while (!descentDone) {
|
||||
if (player.descendLevel() && levelsToDescend != descentLevels) {
|
||||
while (player.descendLevel() && levelsToDescend != descentLevels) {
|
||||
descentLevels++;
|
||||
} else {
|
||||
descentDone = true;
|
||||
}
|
||||
}
|
||||
if (descentLevels == 0) {
|
||||
player.printError("No free spot above you found.");
|
||||
|
Loading…
Reference in New Issue
Block a user