mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed crash when shooting an arrow
This commit is contained in:
parent
0f43decef5
commit
7ebb5a4a63
3 changed files with 2 additions and 3 deletions
|
|
@ -39,7 +39,6 @@ class TaskEatTileGoal extends TaskBase
|
|||
return ($idm[0] === TALL_GRASS && $idm[1] === 1) || $idb === GRASS;
|
||||
}
|
||||
return false;
|
||||
//this.theEntity.getRNG().nextInt(this.theEntity.isChild() ? 50 : 1000) != 0
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ class TaskRandomWalk extends TaskBase
|
|||
$this->reset();
|
||||
return false; //TODO Better way: block movement
|
||||
}
|
||||
|
||||
--$this->selfCounter;
|
||||
$ai->mobController->setMovingOffset($this->x, 0, $this->z, $this->speedMultiplier);
|
||||
//TODO fix $ai->mobController->moveNonInstant($this->x, 0, $this->z);
|
||||
}
|
||||
|
||||
public function canBeExecuted(EntityAI $ai)
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class Arrow extends Projectile{
|
|||
$this->yaw = (atan2($d, $d2) * 180) / M_PI;
|
||||
$this->pitch = (atan2($d1, $f3) * 180) / M_PI;
|
||||
$this->updatePosition();
|
||||
$this->update();
|
||||
//$this->update();
|
||||
//TODO i guess? $ticksInGround = 0;
|
||||
}
|
||||
public function sendMoveUpdate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue