mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Casting cleanup and removed some 32-bit string-int leftovers
This commit is contained in:
@ -440,7 +440,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
* @param bool $remove
|
||||
*/
|
||||
public function setRemoveFormat(bool $remove = true){
|
||||
$this->removeFormat = (bool) $remove;
|
||||
$this->removeFormat = $remove;
|
||||
}
|
||||
|
||||
public function getScreenLineHeight() : int{
|
||||
@ -3435,7 +3435,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
if($this->connected and !$this->closed){
|
||||
|
||||
try{
|
||||
if($notify and strlen((string) $reason) > 0){
|
||||
if($notify and strlen($reason) > 0){
|
||||
$pk = new DisconnectPacket();
|
||||
$pk->message = $reason;
|
||||
$this->directDataPacket($pk);
|
||||
|
Reference in New Issue
Block a user