Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Remove dangling entity link packet in PlayerEntity for parrots
Dieser Commit ist enthalten in:
Ursprung
6192237cc9
Commit
d2a18f8fd5
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren