From e06424a0ca7f63e406e63ac34be4b368631efb2a Mon Sep 17 00:00:00 2001 From: aro Date: Mon, 13 Feb 2023 18:05:06 +0100 Subject: [PATCH] fix: downgrade to java 8 --- .../src/main/java/net/artelnatif/nicko/impl/v1_19_R2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v1_19_R2/src/main/java/net/artelnatif/nicko/impl/v1_19_R2.java b/v1_19_R2/src/main/java/net/artelnatif/nicko/impl/v1_19_R2.java index 288b95f..fa03e1b 100644 --- a/v1_19_R2/src/main/java/net/artelnatif/nicko/impl/v1_19_R2.java +++ b/v1_19_R2/src/main/java/net/artelnatif/nicko/impl/v1_19_R2.java @@ -59,7 +59,7 @@ public class v1_19_R2 implements Internals { final ClientboundSetEntityDataPacket entityMetadata = new ClientboundSetEntityDataPacket(serverPlayer.getBukkitEntity().getEntityId(), entityData.getNonDefaultValues()); Bukkit.getOnlinePlayers().forEach(online -> { - ServerPlayer onlineServerPlayer = ((CraftPlayer) online).getHandle(); + final ServerPlayer onlineServerPlayer = ((CraftPlayer) online).getHandle(); if (onlineServerPlayer.getBukkitEntity().getUniqueId() != player.getUniqueId()) { onlineServerPlayer.connection.send(remove); onlineServerPlayer.connection.send(add); @@ -93,7 +93,7 @@ public class v1_19_R2 implements Internals { ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LATENCY, ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LISTED), Collections.singletonList(serverPlayer)); - final ClientboundPlayerInfoRemovePacket remove = new ClientboundPlayerInfoRemovePacket(List.of(player.getUniqueId())); + final ClientboundPlayerInfoRemovePacket remove = new ClientboundPlayerInfoRemovePacket(Collections.singletonList(player.getUniqueId())); RemoteChatSession chatSession; @@ -107,7 +107,7 @@ public class v1_19_R2 implements Internals { chatSession = new RemoteChatSession(uuid, ppk); } - spoofPlayerInfoPacket(init, List.of(new ClientboundPlayerInfoUpdatePacket.Entry( + spoofPlayerInfoPacket(init, Collections.singletonList(new ClientboundPlayerInfoUpdatePacket.Entry( player.getUniqueId(), gameProfile, true,