mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
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:
parent
56dc3ce6ee
commit
cc4b2959a7
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user