geforkt von Mirrors/FastAsyncWorldEdit
Fix RichParser suggestion sometimes giving a different pattern/mask when specifying arguments
Dieser Commit ist enthalten in:
Ursprung
527b7141a3
Commit
cf6f54bd28
@ -44,7 +44,11 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
|||||||
if (prefix.length() > other.length()) {
|
if (prefix.length() > other.length()) {
|
||||||
return prefix.startsWith(other);
|
return prefix.startsWith(other);
|
||||||
}
|
}
|
||||||
return other.startsWith(prefix);
|
int i = other.indexOf('[');
|
||||||
|
if (i == -1) {
|
||||||
|
return other.startsWith(prefix);
|
||||||
|
}
|
||||||
|
return other.substring(0, i).equalsIgnoreCase(prefix);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren