1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Forgot to upload a recent change to the global api

This commit is contained in:
Tim203
2021-03-02 00:08:07 +01:00
parent 7d787d0135
commit 96e39e3a1f

View File

@@ -105,7 +105,12 @@ final class SkinUploadSocket extends WebSocketClient {
String xuid = message.get("xuid").getAsString(); String xuid = message.get("xuid").getAsString();
FloodgatePlayer player = api.getPlayer(Utils.getJavaUuid(xuid)); FloodgatePlayer player = api.getPlayer(Utils.getJavaUuid(xuid));
if (player != null) { if (player != null) {
applier.applySkin(player, message); if (!message.get("success").getAsBoolean()) {
logger.info("Failed to upload skin for {} ({})", xuid,
player.getCorrectUsername());
return;
}
applier.applySkin(player, message.getAsJsonObject("data"));
} }
} }
} }