Fixed wrong shift due to compiler change

This commit is contained in:
Shoghi Cervantes 2015-04-10 15:05:15 +02:00
parent 0626d27003
commit c32a7467bb

View File

@ -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);