Fixed falling sand glitching on landing, minor logic improvements

This commit is contained in:
Dylan K. Taylor
2017-05-04 17:48:39 +01:00
parent 13fd8b681e
commit 49eb0eb050
2 changed files with 3 additions and 11 deletions

View File

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