3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-07-30 17:18:10 +02:00

Remove dangling entity link packet in PlayerEntity for parrots

Dieser Commit ist enthalten in:
RednedEpic 2020-05-10 14:47:40 -05:00
Ursprung 6192237cc9
Commit d2a18f8fd5

Datei anzeigen

@ -233,8 +233,6 @@ public class PlayerEntity extends LivingEntity {
} else {
Entity parrot = (entityMetadata.getId() == 18 ? leftParrot : rightParrot);
if (parrot != null) {
SetEntityLinkPacket linkPacket = new SetEntityLinkPacket();
linkPacket.setEntityLink(new EntityLink(parrot.getGeyserId(), geyserId, EntityLink.Type.REMOVE, false));
parrot.despawnEntity(session);
if (entityMetadata.getId() == 18) {
leftParrot = null;