fixed tnt and items falling through certain blocks on client side

This commit is contained in:
GameHerobrine 2024-04-25 07:02:44 +03:00
parent 6490dab2e8
commit eaf97deefe
3 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ class GenericBlock extends Block{
if($down->getID() === AIR or ($down instanceof LiquidBlock)){
$data = array(
"x" => $this->x + 0.5,
"y" => $this->y + 0.5,
"y" => $this->y,
"z" => $this->z + 0.5,
"Tile" => $this->id,
);

View file

@ -14,7 +14,7 @@ class TNTBlock extends SolidBlock{
}
$data = array(
"x" => $this->x + 0.5,
"y" => $this->y + 0.5,
"y" => $this->y,
"z" => $this->z + 0.5,
"power" => 3,
"fuse" => 20 * 4, //4 seconds