mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
another small fix
This commit is contained in:
parent
a52e38de5d
commit
0022bfb321
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class TaskRangedAttack extends \TaskBase
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//TODO fix closestPlayerEID being not in entityList
|
||||
$closestTarget = $e->closestPlayerDist <= $this->rangeSquared ? ($e->level->entityList[$e->closestPlayerEID] ?? null) : null;
|
||||
|
||||
if($closestTarget != null){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue