From 837a713fbc5acbd6d4a66f57557b4219f0eaf986 Mon Sep 17 00:00:00 2001 From: Metehan Gezer Date: Sun, 27 Oct 2024 16:28:54 +0300 Subject: [PATCH] Set animations to empty list if null --- .../cloudburstmc/protocol/bedrock/data/skin/SerializedSkin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/skin/SerializedSkin.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/skin/SerializedSkin.java index d93e1b83e..77ac0adee 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/skin/SerializedSkin.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/skin/SerializedSkin.java @@ -305,6 +305,7 @@ public Builder primaryUser(boolean primaryUser) { public SerializedSkin build() { if (playFabId == null) playFabId = ""; + if (animations == null) animations = Collections.emptyList(); if (animationData == null) animationData = ""; if (capeData == null) capeData = ImageData.EMPTY; if (capeId == null) capeId = "";