mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Update Player.php
trying to fix error in minigames
This commit is contained in:
parent
c402e9623b
commit
7d3c95081b
1 changed files with 2 additions and 1 deletions
|
|
@ -1773,7 +1773,8 @@ 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;
|
||||
$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