chore(deps): downgrade to jdk21, update
This commit is contained in:
parent
794d560363
commit
136f7babbb
3 changed files with 16 additions and 15 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue