mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Fixed wrong shift due to compiler change
This commit is contained in:
parent
0626d27003
commit
c32a7467bb
@ -69,7 +69,7 @@ class FallingSand extends Entity{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setDataProperty(self::DATA_BLOCK_INFO, self::DATA_TYPE_INT, ($this->getBlock() << 8) | $this->getDamage());
|
$this->setDataProperty(self::DATA_BLOCK_INFO, self::DATA_TYPE_INT, $this->getBlock() | ($this->getDamage() << 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canCollideWith(Entity $entity){
|
public function canCollideWith(Entity $entity){
|
||||||
@ -159,6 +159,8 @@ class FallingSand extends Entity{
|
|||||||
$pk->speedX = $this->motionX;
|
$pk->speedX = $this->motionX;
|
||||||
$pk->speedY = $this->motionY;
|
$pk->speedY = $this->motionY;
|
||||||
$pk->speedZ = $this->motionZ;
|
$pk->speedZ = $this->motionZ;
|
||||||
|
$pk->yaw = $this->yaw;
|
||||||
|
$pk->pitch = $this->pitch;
|
||||||
$pk->metadata = $this->dataProperties;
|
$pk->metadata = $this->dataProperties;
|
||||||
$player->dataPacket($pk);
|
$player->dataPacket($pk);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user