Fixed some formatting issues in Player

This commit is contained in:
Dylan K. Taylor 2017-06-04 18:32:45 +01:00
parent 6686bd4442
commit d4bb078566

View File

@ -2428,7 +2428,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
case InteractPacket::ACTION_MOUSEOVER: case InteractPacket::ACTION_MOUSEOVER:
break; //TODO: handle these break; //TODO: handle these
default: default:
$this->server->getLogger()->debug("Unhandled/unknown interaction type " . $packet->action . "received from ". $this->getName()); $this->server->getLogger()->debug("Unhandled/unknown interaction type " . $packet->action . "received from " . $this->getName());
return false; return false;
} }
@ -3495,7 +3496,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
* @param string $subtitle * @param string $subtitle
*/ */
public function addSubTitle(string $subtitle){ public function addSubTitle(string $subtitle){
$this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE); $this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE);
} }
/** /**
@ -3520,9 +3521,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
* Resets the title duration settings. * Resets the title duration settings.
*/ */
public function resetTitles(){ public function resetTitles(){
$pk = new SetTitlePacket(); $pk = new SetTitlePacket();
$pk->type = SetTitlePacket::TYPE_RESET_TITLE; $pk->type = SetTitlePacket::TYPE_RESET_TITLE;
$this->dataPacket($pk); $this->dataPacket($pk);
} }
/** /**