From ce5fa0e836a492b1f68720ab4bb6fb6d784e1158 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 30 Oct 2016 15:54:02 +0000 Subject: [PATCH] Fix FallingSand metadata --- src/pocketmine/entity/FallingSand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/entity/FallingSand.php b/src/pocketmine/entity/FallingSand.php index 72fad2e4d..6f64e284d 100644 --- a/src/pocketmine/entity/FallingSand.php +++ b/src/pocketmine/entity/FallingSand.php @@ -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){