Fixed fire spread
This commit is contained in:
parent
9e57b31cd4
commit
ecca770501
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class Fire extends Flowable{
|
|||
}
|
||||
|
||||
public function onUpdate($type){
|
||||
if($type == Level::BLOCK_UPDATE_NORMAL or $type = Level::BLOCK_UPDATE_RANDOM){
|
||||
if($type == Level::BLOCK_UPDATE_NORMAL or $type == Level::BLOCK_UPDATE_RANDOM or $type == Level::BLOCK_UPDATE_SCHEDULED){
|
||||
if(!$this->getSide(Vector3::SIDE_DOWN)->isTopFacingSurfaceSolid() and !$this->canNeighborBurn()){
|
||||
$this->getLevel()->setBlock($this, new Air(), true);
|
||||
return Level::BLOCK_UPDATE_NORMAL;
|
||||
|
|
@ -90,7 +90,7 @@ class Fire extends Flowable{
|
|||
|
||||
//TODO: END
|
||||
|
||||
if(!$this->getSide(Vector3::SIDE_DOWN)->isBlockTopFacingSurfaceSolid() and !$this->canNeighborBurn()){
|
||||
if(!$this->getSide(Vector3::SIDE_DOWN)->isTopFacingSurfaceSolid() and !$this->canNeighborBurn()){
|
||||
$this->getLevel()->setBlock($this, new Air(), true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue