From 330e93e5e3206a51358f6b39c207a2f31cc4d921 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 13 Mar 2020 15:15:20 +0000 Subject: [PATCH] Player: do not handle inbound ActorEvents that are not for self --- src/pocketmine/Player.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 4c67b99ce..1dca005b5 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2249,6 +2249,10 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } public function handleEntityEvent(ActorEventPacket $packet) : bool{ + if($packet->entityRuntimeId !== $this->id){ + //TODO HACK: EATING_ITEM is sent back to the server when the server sends it for other players (1.14 bug, maybe earlier) + return $packet->event === ActorEventPacket::EATING_ITEM; + } if(!$this->spawned or !$this->isAlive()){ return true; }