farm -> dirt on player fall, how works better

This commit is contained in:
GameHerobrine 2023-07-10 00:41:20 +03:00
parent 1baafb8b26
commit 8e5d2bb1c7
8 changed files with 34 additions and 22 deletions

View file

@ -15,7 +15,7 @@ class DirtBlock extends SolidBlock{
if($item->getMetadata() >= $item->getMaxDurability()) $player->setSlot($player->slot, new Item(AIR, 0, 0), false);
else $player->setSlot($player->slot, $item, true);
}
$this->level->setBlock($this, BlockAPI::get(FARMLAND, 0), true, false, true);
$this->level->fastSetBlockUpdate($this->x, $this->y, $this->z, FARMLAND, 0, true);
return true;
}
return false;