mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Don't fatal error if the server owner wants to modify saved disguises files
This commit is contained in:
parent
8c2a5eeb00
commit
0d5d133e42
1 changed files with 6 additions and 1 deletions
|
@ -972,8 +972,13 @@ public class DisguiseUtilities {
|
|||
cachedNames.addAll(Arrays.asList(profileCache.list()));
|
||||
|
||||
for (String key : savedDisguises.list()) {
|
||||
try {
|
||||
savedDisguiseList.add(UUID.fromString(key));
|
||||
}
|
||||
catch (Exception ex) {
|
||||
getLogger().warning("The file '" + key + "' does not belong in " + savedDisguises.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isDisguiseInUse(Disguise disguise) {
|
||||
|
|
Loading…
Reference in a new issue