Cleaned up random-block-ticking registration

This commit is contained in:
Dylan K. Taylor
2017-06-25 19:42:32 +01:00
parent 6553c82320
commit ebda6ec19b
17 changed files with 94 additions and 86 deletions

View File

@ -57,6 +57,9 @@ class Sapling extends Flowable{
return $names[$this->meta & 0x07] ?? "Unknown";
}
public function ticksRandomly() : bool{
return true;
}
public function place(Item $item, Block $block, Block $target, int $face, Vector3 $facePos, Player $player = null) : bool{
$down = $this->getSide(Vector3::SIDE_DOWN);