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.
This commit is contained in:
Dylan K. Taylor 2019-08-02 16:43:45 +01:00
parent 56dc3ce6ee
commit cc4b2959a7

View File

@ -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.
*