Remove dangling entity link packet in PlayerEntity for parrots

This commit is contained in:
RednedEpic 2020-05-10 14:47:40 -05:00
parent 6192237cc9
commit d2a18f8fd5

View file

@ -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;