fix: downgrade to java 8
This commit is contained in:
parent
bce3578fe8
commit
e06424a0ca
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ public class v1_19_R2 implements Internals {
|
||||||
final ClientboundSetEntityDataPacket entityMetadata = new ClientboundSetEntityDataPacket(serverPlayer.getBukkitEntity().getEntityId(), entityData.getNonDefaultValues());
|
final ClientboundSetEntityDataPacket entityMetadata = new ClientboundSetEntityDataPacket(serverPlayer.getBukkitEntity().getEntityId(), entityData.getNonDefaultValues());
|
||||||
|
|
||||||
Bukkit.getOnlinePlayers().forEach(online -> {
|
Bukkit.getOnlinePlayers().forEach(online -> {
|
||||||
ServerPlayer onlineServerPlayer = ((CraftPlayer) online).getHandle();
|
final ServerPlayer onlineServerPlayer = ((CraftPlayer) online).getHandle();
|
||||||
if (onlineServerPlayer.getBukkitEntity().getUniqueId() != player.getUniqueId()) {
|
if (onlineServerPlayer.getBukkitEntity().getUniqueId() != player.getUniqueId()) {
|
||||||
onlineServerPlayer.connection.send(remove);
|
onlineServerPlayer.connection.send(remove);
|
||||||
onlineServerPlayer.connection.send(add);
|
onlineServerPlayer.connection.send(add);
|
||||||
|
@ -93,7 +93,7 @@ public class v1_19_R2 implements Internals {
|
||||||
ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LATENCY,
|
ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LATENCY,
|
||||||
ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LISTED),
|
ClientboundPlayerInfoUpdatePacket.Action.UPDATE_LISTED),
|
||||||
Collections.singletonList(serverPlayer));
|
Collections.singletonList(serverPlayer));
|
||||||
final ClientboundPlayerInfoRemovePacket remove = new ClientboundPlayerInfoRemovePacket(List.of(player.getUniqueId()));
|
final ClientboundPlayerInfoRemovePacket remove = new ClientboundPlayerInfoRemovePacket(Collections.singletonList(player.getUniqueId()));
|
||||||
|
|
||||||
RemoteChatSession chatSession;
|
RemoteChatSession chatSession;
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ public class v1_19_R2 implements Internals {
|
||||||
chatSession = new RemoteChatSession(uuid, ppk);
|
chatSession = new RemoteChatSession(uuid, ppk);
|
||||||
}
|
}
|
||||||
|
|
||||||
spoofPlayerInfoPacket(init, List.of(new ClientboundPlayerInfoUpdatePacket.Entry(
|
spoofPlayerInfoPacket(init, Collections.singletonList(new ClientboundPlayerInfoUpdatePacket.Entry(
|
||||||
player.getUniqueId(),
|
player.getUniqueId(),
|
||||||
gameProfile,
|
gameProfile,
|
||||||
true,
|
true,
|
||||||
|
|
Loading…
Reference in a new issue