A few fixes!

This commit is contained in:
Shoghi Cervantes
2015-03-21 00:45:20 +01:00
parent 652987110a
commit add380c7ed
10 changed files with 55 additions and 25 deletions

View File

@ -79,10 +79,10 @@ class FloatingTextParticle extends Particle{
$pk = new AddPlayerPacket();
$pk->eid = $this->entityId;
$pk->username = $this->title . "\n" . $this->text;
$pk->username = $this->title . ($this->text !== "" ? "\n" . $this->text : "");
$pk->clientID = $this->entityId;
$pk->x = $this->x;
$pk->y = $this->y - 2;
$pk->y = $this->y - 2.5;
$pk->z = $this->z;
$pk->yaw = 0;
$pk->pitch = 0;

View File

@ -26,6 +26,6 @@ use pocketmine\math\Vector3;
class TerrainParticle extends GenericParticle{
public function __construct(Vector3 $pos, Block $b){
parent::__construct($pos, 15, ($b->getId() << 8) | $b->getDamage());
parent::__construct($pos, 15, ($b->getDamage() << 8) | $b->getId());
}
}