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

@ -1248,7 +1248,7 @@ class Player{
$move = new MovePlayerPacket();
$move->eid = $e->eid;
$move->x = $e->x;
$move->y = $e->y;
$move->y = $e->y + $e->yOffset;
$move->z = $e->z;
$move->yaw = $e->yaw;
$move->pitch = $e->pitch;
@ -1258,7 +1258,7 @@ class Player{
$move = new MoveEntityPacket_PosRot();
$move->eid = $e->eid;
$move->x = $e->x;
$move->y = $e->y;
$move->y = $e->y + $e->yOffset;
$move->z = $e->z;
$move->yaw = $e->yaw;
$move->pitch = $e->pitch;

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