From cc4b2959a7c57e3f28dd81815e3764458bed1880 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 2 Aug 2019 16:43:45 +0100 Subject: [PATCH] Player: ditch deprecated dataPacket() it doesn't make sense to deprecate this on a major version, particularly given all the other changes that plugin devs will have to accommodate. --- src/player/Player.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/player/Player.php b/src/player/Player.php index b6f27f644..0c66e50c1 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -1917,18 +1917,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener, return $this->networkSession->sendDataPacket($packet, $immediate); } - /** - * @deprecated This is a proxy for sendDataPacket() and will be removed in the next major release. - * @see Player::sendDataPacket() - * - * @param ClientboundPacket $packet - * - * @return bool - */ - public function dataPacket(ClientboundPacket $packet) : bool{ - return $this->sendDataPacket($packet, false); - } - /** * Adds a title text to the user's screen, with an optional subtitle. *