mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed tnt and items falling through certain blocks on client side
This commit is contained in:
parent
6490dab2e8
commit
eaf97deefe
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue