From 4d61766d0adf17849ecd66538c3889f76a763b3f Mon Sep 17 00:00:00 2001 From: rtm516 Date: Tue, 14 May 2024 16:38:51 +0100 Subject: [PATCH] Fix SessionSkinApplyEvent not keeping altered skin data (#4663) --- .../main/java/org/geysermc/geyser/skin/SkinProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/skin/SkinProvider.java b/core/src/main/java/org/geysermc/geyser/skin/SkinProvider.java index 3b31dfff8..5b16bc3a3 100644 --- a/core/src/main/java/org/geysermc/geyser/skin/SkinProvider.java +++ b/core/src/main/java/org/geysermc/geyser/skin/SkinProvider.java @@ -271,17 +271,17 @@ public class SkinProvider { @Override public void skin(@NonNull Skin newSkin) { - eventSkinData.skinData(new SkinData(Objects.requireNonNull(newSkin), skinData.cape(), skinData.geometry())); + eventSkinData.skinData(new SkinData(Objects.requireNonNull(newSkin), eventSkinData.skinData().cape(), eventSkinData.skinData().geometry())); } @Override public void cape(@NonNull Cape newCape) { - eventSkinData.skinData(new SkinData(skinData.skin(), Objects.requireNonNull(newCape), skinData.geometry())); + eventSkinData.skinData(new SkinData(eventSkinData.skinData().skin(), Objects.requireNonNull(newCape), eventSkinData.skinData().geometry())); } @Override public void geometry(@NonNull SkinGeometry newGeometry) { - eventSkinData.skinData(new SkinData(skinData.skin(), skinData.cape(), Objects.requireNonNull(newGeometry))); + eventSkinData.skinData(new SkinData(eventSkinData.skinData().skin(), eventSkinData.skinData().cape(), Objects.requireNonNull(newGeometry))); } });