forked from GeyserMC/Geyser
Remove dangling entity link packet in PlayerEntity for parrots
This commit is contained in:
parent
6192237cc9
commit
d2a18f8fd5
1 changed files with 0 additions and 2 deletions
|
@ -233,8 +233,6 @@ public class PlayerEntity extends LivingEntity {
|
||||||
} else {
|
} else {
|
||||||
Entity parrot = (entityMetadata.getId() == 18 ? leftParrot : rightParrot);
|
Entity parrot = (entityMetadata.getId() == 18 ? leftParrot : rightParrot);
|
||||||
if (parrot != null) {
|
if (parrot != null) {
|
||||||
SetEntityLinkPacket linkPacket = new SetEntityLinkPacket();
|
|
||||||
linkPacket.setEntityLink(new EntityLink(parrot.getGeyserId(), geyserId, EntityLink.Type.REMOVE, false));
|
|
||||||
parrot.despawnEntity(session);
|
parrot.despawnEntity(session);
|
||||||
if (entityMetadata.getId() == 18) {
|
if (entityMetadata.getId() == 18) {
|
||||||
leftParrot = null;
|
leftParrot = null;
|
||||||
|
|
Loading…
Reference in a new issue