Traits suck. Fixed missed getDamage() from 9ad0ea85c7caeea065ccfadf3bd12bd97cc5f0b6

This commit is contained in:
Dylan K. Taylor 2019-02-27 16:50:51 +00:00
parent 08673172c7
commit fb02071a9d

View File

@ -43,7 +43,7 @@ trait FallableTrait{
abstract protected function getId() : int;
abstract protected function getDamage() : int;
abstract protected function getMeta() : int;
public function onNearbyBlockChange() : void{
$pos = $this->asPosition();
@ -53,7 +53,7 @@ trait FallableTrait{
$nbt = EntityFactory::createBaseNBT($pos->add(0.5, 0, 0.5));
$nbt->setInt("TileID", $this->getId());
$nbt->setByte("Data", $this->getDamage());
$nbt->setByte("Data", $this->getMeta());
/** @var FallingBlock $fall */
$fall = EntityFactory::create(FallingBlock::class, $pos->getLevel(), $nbt);