1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

remove PlayerUtils.findTexturesProperty

This commit is contained in:
2024-08-29 00:25:35 +03:00
parent 417ed7d695
commit 6611077b93

View File

@@ -126,25 +126,4 @@ public final class PlayerUtils {
return xJson.equals(yJson);
}
public static Property findTexturesProperty(JsonArray properties) {
Property textures = null;
for (var property : properties) {
var propertyObject = property.getAsJsonObject();
if (propertyObject == null)
continue;
try {
textures = JsonUtils.fromJson(propertyObject, Property.class);
break;
} catch (Exception e) {
// ignored
}
}
if (textures == null)
throw new IllegalStateException("no textures in profile");
return textures;
}
}