Fire has a 1/3 chance of aging on a random or scheduled tick

This commit is contained in:
Dylan K. Taylor 2018-03-18 15:19:29 +00:00
parent f47f593555
commit 7db8845375

View File

@ -94,7 +94,7 @@ class Fire extends Flowable{
$down = $this->getSide(Vector3::SIDE_DOWN); $down = $this->getSide(Vector3::SIDE_DOWN);
$result = null; $result = null;
if($this->meta < 15){ if($this->meta < 15 and mt_rand(0, 2) === 0){
$this->meta++; $this->meta++;
$result = $this; $result = $this;
} }