mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-14 02:34:04 +00:00
Make Code Better
This commit is contained in:
1 parent
469c8b62a9
commit
622e834d26
22 files changed
+120
-115
No files matched your search
@@ -22,14 +22,14 @@ public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
|
||||
if(clientIDFile.isFile())
|
||||
try{
|
||||
clientID=FileUtils.readFileToString(clientIDFile);
|
||||
clientID=FileUtils.readFileToString(clientIDFile, "UTF-8");
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
if(clientID==null){
|
||||
clientID=UUID.randomUUID().toString();
|
||||
try {
|
||||
FileUtils.write(clientIDFile, clientID);
|
||||
FileUtils.write(clientIDFile, clientID, "UTF-8");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user