mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +00:00
Fixed null error when using older premium jars
This commit is contained in:
parent
3ae785fb35
commit
ec5bf18399
1 changed files with 4 additions and 0 deletions
|
@ -238,6 +238,10 @@ public class LibsPremium {
|
||||||
* Add a naughty message for the invalid user ids
|
* Add a naughty message for the invalid user ids
|
||||||
*/
|
*/
|
||||||
private static String getSanitizedUser(String userID) {
|
private static String getSanitizedUser(String userID) {
|
||||||
|
if (userID == null) {
|
||||||
|
return "N/A";
|
||||||
|
}
|
||||||
|
|
||||||
if (!userID.matches("[0-9]+")) {
|
if (!userID.matches("[0-9]+")) {
|
||||||
return String.format("... %s? Am I reading this right?", userID);
|
return String.format("... %s? Am I reading this right?", userID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue