mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed fire with no nearby flammable blocks burning for too long
This commit is contained in:
parent
af9b0b019d
commit
46cbcb0c42
@ -120,9 +120,9 @@ class Fire extends Flowable{
|
|||||||
$this->level->setBlock($this, $result);
|
$this->level->setBlock($this, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($canSpread){
|
$this->level->scheduleDelayedBlockUpdate($this, mt_rand(30, 40));
|
||||||
$this->level->scheduleDelayedBlockUpdate($this, mt_rand(30, 40));
|
|
||||||
|
|
||||||
|
if($canSpread){
|
||||||
//TODO: raise upper bound for chance in humid biomes
|
//TODO: raise upper bound for chance in humid biomes
|
||||||
|
|
||||||
foreach($this->getHorizontalSides() as $side){
|
foreach($this->getHorizontalSides() as $side){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user