mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-24 01:09:30 +00:00
Remove dangling entity link packet in PlayerEntity for parrots
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user