mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mr_rand(1)
This commit is contained in:
parent
f864e4db38
commit
b5b8783d48
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ class TaskAttackPlayer extends TaskTempt
|
|||
}
|
||||
public function onUpdate(EntityAI $ai)
|
||||
{
|
||||
if(($ai->entity instanceof Spider && $ai->entity->level->isDay()) || ($this->target instanceof Entity && !$this->target->isPlayer()) || $this->target->distanceSquared($ai->entity) > 100 || $this->target->level->getName() != $ai->entity->level->getName()){
|
||||
if(!($this->target instanceof Entity) ($ai->entity instanceof Spider && $ai->entity->level->isDay()) || ($this->target instanceof Entity && !$this->target->isPlayer()) || $this->target->distanceSquared($ai->entity) > 100 || $this->target->level->getName() != $ai->entity->level->getName()){
|
||||
$this->reset();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue