3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 06:50:09 +01:00

Should fix Floodgate skin uploading

Dieser Commit ist enthalten in:
Camotoy 2023-04-24 13:16:45 -04:00
Ursprung 365dd622bb
Commit bc66f81630
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -28,6 +28,7 @@ package org.geysermc.geyser.skin;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.nimbusds.jwt.SignedJWT;
import lombok.Getter;
@ -191,7 +192,9 @@ public final class FloodgateSkinUploader {
}
ObjectNode node = JACKSON.createObjectNode();
node.put("chain_data", chainData.toString()); // TODO: Check this
ArrayNode chainDataNode = JACKSON.createArrayNode();
chainData.forEach(jwt -> chainDataNode.add(jwt.serialize()));
node.set("chain_data", chainDataNode);
node.put("client_data", clientData);
// The reason why I don't like Jackson