falling tile fixes x2

This commit is contained in:
GameHerobrine 2025-05-09 19:27:22 +03:00
parent e7c4c3b8e6
commit 62b846e673
2 changed files with 13 additions and 3 deletions

View file

@ -62,12 +62,11 @@ class GenericBlock extends Block{
if($down == AIR || StaticBlock::getIsLiquid($down)){
$data = array(
"x" => $x + 0.5,
"y" => $y - 0.5,
"y" => $y,
"z" => $z + 0.5,
"Tile" => $id,
);
$server = ServerAPI::request();
$level->fastSetBlockUpdate($x, $y, $z, 0, 0, true);
$e = $server->api->entity->add($level, ENTITY_FALLING, FALLING_SAND, $data);
$server->api->entity->spawnToAll($e);
}