13
0
geforkt von Mirrors/Paper

Resend entity using the bundle packet (#9853)

Dieser Commit ist enthalten in:
Lulu13022002 2023-10-27 15:48:13 +02:00
Ursprung cd2ebaa455
Commit 8f1cb77f10

Datei anzeigen

@ -58,9 +58,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return;
+ }
+
+ net.minecraft.server.level.ServerEntity serverEntity = this.entity.tracker.serverEntity;
+ if (player.getBukkitEntity().canSee(entity.getBukkitEntity())) {
+ serverEntity.sendPairingData(player, player.connection::send);
+ net.minecraft.server.level.ServerEntity serverEntity = this.entity.tracker.serverEntity;
+
+ List<net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>> list = new ArrayList<>();
+ serverEntity.sendPairingData(player, list::add);
+ player.connection.send(new net.minecraft.network.protocol.game.ClientboundBundlePacket(list));
+ }
+ }
+