Fixed some lines indented with 4 spaces rather than tabs

This commit is contained in:
SOF3
2016-10-03 00:58:34 +08:00
parent 6fc435da0e
commit e913b16804
56 changed files with 238 additions and 238 deletions

View File

@ -25,25 +25,25 @@ use pocketmine\math\Vector3;
use pocketmine\network\protocol\LevelEventPacket;
class GenericSound extends Sound{
public function __construct(Vector3 $pos, $id, $pitch = 0){
parent::__construct($pos->x, $pos->y, $pos->z);
$this->id = (int) $id;
$this->pitch = (float) $pitch * 1000;
}
protected $pitch = 0;
protected $id;
public function getPitch(){
return $this->pitch / 1000;
}
public function setPitch($pitch){
$this->pitch = (float) $pitch * 1000;
}
public function encode(){
$pk = new LevelEventPacket;
$pk->evid = $this->id;
@ -51,7 +51,7 @@ class GenericSound extends Sound{
$pk->y = $this->y;
$pk->z = $this->z;
$pk->data = (int) $this->pitch;
return $pk;
}

View File

@ -25,7 +25,7 @@ use pocketmine\math\Vector3;
use pocketmine\network\protocol\DataPacket;
abstract class Sound extends Vector3{
/**
* @return DataPacket|DataPacket[]
*/