diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index beb7ab3c0..c91e054e4 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2855,6 +2855,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ case PlayerActionPacket::ACTION_STOP_SWIMMING: //TODO: handle this when it doesn't spam every damn tick (yet another spam bug!!) break; + case PlayerActionPacket::ACTION_INTERACT_BLOCK: //ignored (for now) + break; default: $this->server->getLogger()->debug("Unhandled/unknown player action type " . $packet->action . " from " . $this->getName()); return false; diff --git a/src/pocketmine/network/mcpe/protocol/PlayerActionPacket.php b/src/pocketmine/network/mcpe/protocol/PlayerActionPacket.php index 5d45b27d3..590111e15 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayerActionPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayerActionPacket.php @@ -56,6 +56,7 @@ class PlayerActionPacket extends DataPacket{ public const ACTION_STOP_SWIMMING = 22; public const ACTION_START_SPIN_ATTACK = 23; public const ACTION_STOP_SPIN_ATTACK = 24; + public const ACTION_INTERACT_BLOCK = 25; /** @var int */ public $entityRuntimeId;