Added Block->getRuntimeId(), clean up some mess

This commit is contained in:
Dylan K. Taylor
2018-09-19 16:16:10 +01:00
parent 107192c753
commit 4bc0d850b1
7 changed files with 18 additions and 20 deletions

View File

@ -71,7 +71,7 @@ class FallingBlock extends Entity{
$this->block = BlockFactory::get($blockId, $damage);
$this->propertyManager->setInt(self::DATA_VARIANT, BlockFactory::toStaticRuntimeId($this->block->getId(), $this->block->getDamage()));
$this->propertyManager->setInt(self::DATA_VARIANT, $this->block->getRuntimeId());
}
public function canCollideWith(Entity $entity) : bool{