mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
A few fixes!
This commit is contained in:
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user