InGamePacketHandler: don't kick the player out of inventory windows on actor events

this is sent when the player crafts something using an anvil.
This commit is contained in:
Dylan K. Taylor 2022-07-14 20:36:11 +01:00
parent baf75089f5
commit c7133bc2e6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -269,7 +269,6 @@ class InGamePacketHandler extends PacketHandler{
//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->actorRuntimeId === ActorEvent::EATING_ITEM;
}
$this->player->removeCurrentWindow();
switch($packet->eventId){
case ActorEvent::EATING_ITEM: //TODO: ignore this and handle it server-side