fallingsand will update blocks nearby after placing itself

This commit is contained in:
GameHerobrine 2024-11-27 01:13:48 +03:00
parent e85fbd6067
commit 7c733886c2

View file

@ -46,7 +46,7 @@ class FallingSand extends Entity{
$this->speedY *= -0.5;
$this->close();
//TODO vanilla-like checking?
$this->level->fastSetBlockUpdate($x, $y, $z, $this->data["Tile"], 0); //TODO add metadata
$this->level->fastSetBlockUpdate($x, $y, $z, $this->data["Tile"], 0, true); //TODO add metadata
}elseif(($blockAt = $this->level->level->getBlockID($x, $y, $z)) != 0){
//TODO vanilla-like checking?
if(StaticBlock::getIsTransparent($blockAt) && !StaticBlock::getIsLiquid($blockAt)){