Casting cleanup and removed some 32-bit string-int leftovers

This commit is contained in:
Dylan K. Taylor
2017-08-17 11:24:49 +01:00
parent 77376d3e33
commit 5b4035253b
6 changed files with 25 additions and 24 deletions

View File

@ -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);