mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fix FallingSand metadata
This commit is contained in:
parent
dc07fc42b4
commit
ce5fa0e836
@ -35,8 +35,6 @@ use pocketmine\Player;
|
||||
class FallingSand extends Entity{
|
||||
const NETWORK_ID = 66;
|
||||
|
||||
const DATA_BLOCK_INFO = 20;
|
||||
|
||||
public $width = 0.98;
|
||||
public $length = 0.98;
|
||||
public $height = 0.98;
|
||||
@ -66,7 +64,7 @@ class FallingSand extends Entity{
|
||||
return;
|
||||
}
|
||||
|
||||
$this->setDataProperty(self::DATA_BLOCK_INFO, self::DATA_TYPE_INT, $this->getBlock() | ($this->getDamage() << 8));
|
||||
$this->setDataProperty(self::DATA_VARIANT, self::DATA_TYPE_INT, $this->getBlock() | ($this->getDamage() << 8));
|
||||
}
|
||||
|
||||
public function canCollideWith(Entity $entity){
|
||||
|
Loading…
x
Reference in New Issue
Block a user