mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-13 05:27:29 +00:00
Support Dynamic Skull Texture Index
Local Texture Supported for Static Skull Fix network bug Try to use some forge
This commit is contained in:
1 parent
ea49e7489a
commit
a917e67871
9 files changed
+77
-24
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package customskinloader.loader.jsonapi;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.UUID;
|
||||
import java.util.prefs.Preferences;
|
||||
|
||||
@@ -20,7 +19,6 @@ import customskinloader.utils.MinecraftUtil;
|
||||
public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
|
||||
private static String clientID=null;
|
||||
private static String deviceID=Preferences.systemRoot().node("CustomSkinAPIPlus").get("id", null);
|
||||
public CustomSkinAPIPlus(){
|
||||
File clientIDFile=new File(CustomSkinLoader.DATA_DIR,"CustomSkinAPIPlus-ClientID");
|
||||
|
||||
@@ -38,10 +36,6 @@ public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if(StringUtils.isEmpty(deviceID)){
|
||||
deviceID=UUID.randomUUID().toString();
|
||||
Preferences.systemRoot().node("CustomSkinAPIPlus").put("id", deviceID);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public String toJsonUrl(String root, String username) {
|
||||
@@ -70,7 +64,6 @@ public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
public String modVersion;//mod version
|
||||
public String serverAddress;//ip:port
|
||||
public String clientID;//Minecraft Client ID
|
||||
public String deviceID;//Device ID
|
||||
public CustomSkinAPIPlusPayload(CustomSkinAPIPlusPrivacy privacy){
|
||||
if(privacy.gameVersion)
|
||||
gameVersion=MinecraftUtil.getMinecraftMainVersion();
|
||||
@@ -80,8 +73,6 @@ public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
serverAddress=MinecraftUtil.isLanServer()?null:MinecraftUtil.getStandardServerAddress();
|
||||
if(privacy.clientID)
|
||||
clientID=CustomSkinAPIPlus.clientID;
|
||||
if(privacy.deviceID)
|
||||
deviceID=CustomSkinAPIPlus.deviceID;
|
||||
}
|
||||
}
|
||||
public static class CustomSkinAPIPlusPrivacy{
|
||||
@@ -89,6 +80,5 @@ public class CustomSkinAPIPlus implements IJsonAPI {
|
||||
public boolean modVersion=true;
|
||||
public boolean serverAddress=true;
|
||||
public boolean clientID=true;
|
||||
public boolean deviceID=true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user