Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed issue with CommandContext breaking arguments with negative numbers.
Dieser Commit ist enthalten in:
Ursprung
7d661844ad
Commit
eff7dac690
@ -33,7 +33,7 @@ public class CommandContext {
|
|||||||
int i = 1;
|
int i = 1;
|
||||||
|
|
||||||
for (; i < args.length; i++) {
|
for (; i < args.length; i++) {
|
||||||
if (args[i].charAt(0) == '-') {
|
if (args[i].charAt(0) == '-' && args[i].matches("^-[a-zA-Z]+$")) {
|
||||||
for (int k = 1; k < args[i].length(); k++) {
|
for (int k = 1; k < args[i].length(); k++) {
|
||||||
flags.add(args[i].charAt(k));
|
flags.add(args[i].charAt(k));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren