mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-19 18:04:07 +00:00
Fire has a 1/3 chance of aging on a random or scheduled tick
This commit is contained in:
parent
f47f593555
commit
7db8845375
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user