Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Fix SessionSkinApplyEvent not keeping altered skin data (#4663)
Dieser Commit ist enthalten in:
Ursprung
b11a6d7176
Commit
4d61766d0a
@ -271,17 +271,17 @@ public class SkinProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void skin(@NonNull Skin newSkin) {
|
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
|
@Override
|
||||||
public void cape(@NonNull Cape newCape) {
|
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
|
@Override
|
||||||
public void geometry(@NonNull SkinGeometry newGeometry) {
|
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)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren