Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Made //fast display a different message if the argument matches the current mode
Dieser Commit ist enthalten in:
Ursprung
2b9f0be8df
Commit
2719308ada
@ -76,7 +76,7 @@ public class GeneralCommands {
|
||||
|
||||
boolean light = args.hasFlag('f');
|
||||
String newState = args.getString(0, null);
|
||||
Boolean dir = newState.equals("on") ? true : newState.equals("off") ? false : null;
|
||||
Boolean dir = newState == null ? null : newState.equals("on") ? true : newState.equals("off") ? false : null;
|
||||
|
||||
boolean hadFast = session.hasFastMode();
|
||||
boolean hadLight = session.hasFastLighting();
|
||||
@ -89,7 +89,7 @@ public class GeneralCommands {
|
||||
session.setFastLighting(setLight);
|
||||
}
|
||||
|
||||
player.print("Fast mode " + (!setFast ? "disabled." :
|
||||
player.print("Fast mode " + (setFast == hadFast ? "already " : "") + (!setFast ? "disabled." :
|
||||
("enabled. You may need to rejoin to see changes"
|
||||
+ (setLight ? "and lighting in affected chunks may be wrong." : "."))));
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren