mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fix PlaceBlock Packet handle
This commit is contained in:
parent
c8fc4139f8
commit
aad00314d7
1 changed files with 2 additions and 2 deletions
|
|
@ -2264,7 +2264,7 @@ class Player{
|
|||
$packet->eid = $this->eid;
|
||||
$data = [];
|
||||
|
||||
if ($packet->face >= 0 and $packet->face <= 5) { //Use Block, place
|
||||
if ($packet->face >= 0 and $packet->face <= 5) {
|
||||
if ($this->entity->inAction === true) {
|
||||
$this->entity->inAction = false;
|
||||
$this->entity->inActionCounter = 0;
|
||||
|
|
@ -2274,7 +2274,7 @@ class Player{
|
|||
if ($this->blocked === true or ($this->entity->position instanceof Vector3 and $blockVector->distance($this->entity->position) > 10)) {
|
||||
|
||||
} else {
|
||||
$this->server->api->block->playerBlockAction($this, $blockVector, $packet->face, $packet->fx, $packet->fy, $packet->fz);
|
||||
$this->server->api->block->playerBlockAction($this, $blockVector, $packet->face, $packet->x, $packet->y, $packet->z);
|
||||
break;
|
||||
}
|
||||
$target = $this->level->getBlock($blockVector);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue