Skip to content

Commit 3c630b4

Browse files
Comment out debug
1 parent 70ae4ab commit 3c630b4

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

shared/src/main/java/xyz/kaydax/openely/shared/OpenEly.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class OpenEly
1919
//This assumes that every single api's GameProfile properties are the same, which they should be...
2020
public static <T> List<T> modifySkin(String uuid, List<T> property, Consumer<String> logger) throws Exception
2121
{
22-
logger.accept("[DEBUG] Starting modifySkin for UUID: " + uuid);
23-
logger.accept("[DEBUG] Property list size: " + property.size());
24-
logger.accept("[DEBUG] Forwarding all skins to custom API");
22+
// logger.accept("[DEBUG] Starting modifySkin for UUID: " + uuid);
23+
// logger.accept("[DEBUG] Property list size: " + property.size());
24+
// logger.accept("[DEBUG] Forwarding all skins to custom API");
2525

2626
List<T> properties = new ArrayList<>(property);
2727

@@ -37,17 +37,17 @@ public static <T> List<T> modifySkin(String uuid, List<T> property, Consumer<Str
3737
{
3838
Method method = p.getClass().getMethod("getName");
3939
String pName = (String) method.invoke(p);
40-
if(pName.equals("textures")) {
41-
logger.accept("[DEBUG] Removing existing textures property");
42-
}
40+
// if(pName.equals("textures")) {
41+
// logger.accept("[DEBUG] Removing existing textures property");
42+
// }
4343
return pName.equals("textures");
4444
} catch(NoSuchMethodException | IllegalAccessException | InvocationTargetException e)
4545
{
4646
Method method = p.getClass().getMethod("name");
4747
String pName = (String) method.invoke(p);
48-
if(pName.equals("textures")) {
49-
logger.accept("[DEBUG] Removing existing textures property");
50-
}
48+
// if(pName.equals("textures")) {
49+
// logger.accept("[DEBUG] Removing existing textures property");
50+
// }
5151
return pName.equals("textures");
5252
}
5353
} catch(NoSuchMethodException | IllegalAccessException | InvocationTargetException e)
@@ -60,24 +60,24 @@ public static <T> List<T> modifySkin(String uuid, List<T> property, Consumer<Str
6060
{
6161
// Get the class of the generic type T from original properties
6262
Class<?> clazz = originalProperties.get(0).getClass();
63-
logger.accept("[DEBUG] Property class: " + clazz.getName());
63+
// logger.accept("[DEBUG] Property class: " + clazz.getName());
6464

6565
// Get the constructor that takes three String parameters
6666
Constructor<?> constructor = clazz.getConstructor(String.class, String.class, String.class);
6767

6868
// Create a new instance of T
69-
logger.accept("[DEBUG] Fetching skin from API for UUID: " + uuid);
69+
// logger.accept("[DEBUG] Fetching skin from API for UUID: " + uuid);
7070
Properties skin = getSkinByUUID(uuid);
71-
logger.accept("[DEBUG] Received skin data - name: " + skin.name + ", value length: " + (skin.value != null ? skin.value.length() : "null") + ", signature length: " + (skin.signature != null ? skin.signature.length() : "null"));
71+
// logger.accept("[DEBUG] Received skin data - name: " + skin.name + ", value length: " + (skin.value != null ? skin.value.length() : "null") + ", signature length: " + (skin.signature != null ? skin.signature.length() : "null"));
7272

7373
@SuppressWarnings("unchecked") T instance = (T) constructor.newInstance(skin.name, skin.value, skin.signature);
7474

7575
// Add the new instance to the properties list
7676
properties.add(instance);
77-
logger.accept("[DEBUG] Successfully added new textures property");
77+
// logger.accept("[DEBUG] Successfully added new textures property");
7878
}
7979

80-
logger.accept("[DEBUG] Skin modification complete, returning " + properties.size() + " properties");
80+
// logger.accept("[DEBUG] Skin modification complete, returning " + properties.size() + " properties");
8181
return properties;
8282
}
8383
}

0 commit comments

Comments
 (0)