Fixed falling blocks not falling when placed above fire, close #1425

yes, hardcoding this is not a nice solution - PC also does this, want to fight?
This commit is contained in:
Dylan K. Taylor 2017-09-29 14:53:23 +01:00
parent a06ff3d96b
commit a33be643c4

View File

@ -38,7 +38,7 @@ abstract class Fallable extends Solid{
public function onUpdate(int $type){
if($type === Level::BLOCK_UPDATE_NORMAL){
$down = $this->getSide(Vector3::SIDE_DOWN);
if($down->getId() === self::AIR or ($down instanceof Liquid)){
if($down->getId() === self::AIR or $down instanceof Liquid or $down instanceof Fire){
$this->level->setBlock($this, BlockFactory::get(Block::AIR), true);
$fall = Entity::createEntity("FallingSand", $this->getLevel(), new CompoundTag("", [
new ListTag("Pos", [