mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Legacy doesn't support metadata.
This commit is contained in:
parent
0b30c127c4
commit
aa8ba2b3a6
1 changed files with 2 additions and 3 deletions
|
@ -137,12 +137,11 @@ public class LegacySkinServer implements SkinServer {
|
|||
return new UnsupportedOperationException("Server does not have a gateway.");
|
||||
}
|
||||
|
||||
protected Map<String, ?> createHeaders(Session session, SkinUpload upload) {
|
||||
private Map<String, ?> createHeaders(Session session, SkinUpload upload) {
|
||||
Builder<String, Object> builder = ImmutableMap.<String, Object>builder()
|
||||
.put("user", session.getUsername())
|
||||
.put("uuid", UUIDTypeAdapter.fromUUID(session.getProfile().getId()))
|
||||
.put("type", upload.getType().toString().toLowerCase(Locale.US))
|
||||
.put("model", upload.getMetadata().getOrDefault("model", "default"));
|
||||
.put("type", upload.getType().toString().toLowerCase(Locale.US));
|
||||
|
||||
if (upload.getImage() == null) {
|
||||
builder.put("clear", "1");
|
||||
|
|
Loading…
Reference in a new issue