tile entity related packets use block update queue, cleaned up unused code, some phpdocs

This commit is contained in:
GameHerobrine 2025-06-25 03:22:24 +03:00
parent de44bd6a0d
commit d4036d8ac9
15 changed files with 165 additions and 112 deletions

View file

@ -29,7 +29,6 @@ class SaplingBlock extends FlowableBlock{
$down = $this->getSide(0);
if($down->getID() === GRASS or $down->getID() === DIRT or $down->getID() === FARMLAND){
$this->level->setBlock($block, $this, true, false, true);
$this->level->scheduleBlockUpdate(new Position($this, 0, 0, $this->level), Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
return true;
}
return false;