mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed small bug in player.interact event
This commit is contained in:
parent
7d3c95081b
commit
f469a186c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1773,7 +1773,7 @@ class Player{
|
|||
$target = $this->server->api->entity->get($packet->target);
|
||||
if($target instanceof Entity and $this->entity instanceof Entity and $this->gamemode !== VIEW and $this->blocked === false and ($target instanceof Entity) and $this->entity->distance($target) <= 8){
|
||||
$data["targetentity"] = $packet->target;
|
||||
$data["entity"] = $this;
|
||||
$data["entity"] = $this->entity;
|
||||
$data["player"] = $this;
|
||||
if($this->server->handle("player.interact", $data) !== false){
|
||||
$target->interactWith($this->entity, $packet->action);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue