Fixed eating sounds

This commit is contained in:
Dylan K. Taylor 2017-09-24 21:18:08 +01:00
parent 6b0ac8adb8
commit 3c02a6a8ed
2 changed files with 10 additions and 0 deletions

View File

@ -2146,6 +2146,14 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->resetCraftingGridType();
switch($packet->event){
case EntityEventPacket::EATING_ITEM:
if($packet->data === 0){
return false;
}
$this->dataPacket($packet);
$this->server->broadcastPacket($this->getViewers(), $packet);
break;
default:
return false;
}

View File

@ -48,6 +48,8 @@ class EntityEventPacket extends DataPacket{
const RESPAWN = 18;
const EATING_ITEM = 57;
//TODO: add more events
/** @var int */