chore(deps): downgrade to jdk21, update

This commit is contained in:
ineanto 2025-08-31 10:17:08 +02:00
parent 794d560363
commit 136f7babbb
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84
3 changed files with 16 additions and 15 deletions

View file

@ -46,6 +46,7 @@ public class AppearanceManager {
}
public ActionResult update(boolean skinChange) {
// TODO (Ineanto, 30/06/2025): Name is not updated when joining ONLY?
final NickoProfile profile = getNickoProfile();
final String displayName = profile.getName() == null ? player.getName() : profile.getName();

View file

@ -16,6 +16,7 @@ import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import xyz.ineanto.nicko.Nicko;
import xyz.ineanto.nicko.appearance.ActionResult;
import xyz.ineanto.nicko.language.LanguageKey;
@ -94,7 +95,7 @@ public record PacketEventsPacketSender(Player player, NickoProfile profile) impl
@Override
public void sendEntityMetadataUpdate() {
// This was surprisingly easy to write?
final EntityData<Byte> entityData = new EntityData<>(17, EntityDataTypes.BYTE, (byte) 0x7f);
final EntityData<@NotNull Byte> entityData = new EntityData<>(17, EntityDataTypes.BYTE, (byte) 0x7f);
final WrapperPlayServerEntityMetadata metadata = new WrapperPlayServerEntityMetadata(player.getEntityId(), List.of(entityData));
sendPacket(metadata, player);