diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 7888249ae4..f4151a8afc 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1246,7 +1246,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ $this->lastUpdate = $currentTick; - if($this->spawned){ + if($this->spawned){ $this->processMovement($currentTick); $this->entityBaseTick(1); diff --git a/src/pocketmine/level/particle/MobSpawnParticle.php b/src/pocketmine/level/particle/MobSpawnParticle.php index b65fa7ae63..379b8b8544 100644 --- a/src/pocketmine/level/particle/MobSpawnParticle.php +++ b/src/pocketmine/level/particle/MobSpawnParticle.php @@ -41,7 +41,7 @@ class MobSpawnParticle extends Particle{ $pk->x = $this->x; $pk->y = $this->y; $pk->z = $this->z; - $pk->data = 0; + $pk->data = ($this->width & 0xff) + (($this->height & 0xff) << 8); return $pk; }