mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
better spider attacks
This commit is contained in:
parent
7a1bf49ca0
commit
0f84d692b7
5 changed files with 27 additions and 12 deletions
|
|
@ -195,8 +195,8 @@ class Entity extends Position
|
|||
return in_array($this->type, func_get_args());
|
||||
}
|
||||
|
||||
public function attackEntity($entity){
|
||||
|
||||
public function attackEntity($entity, $distance){
|
||||
return false;
|
||||
}
|
||||
|
||||
public function setInWeb(){
|
||||
|
|
@ -654,7 +654,7 @@ class Entity extends Position
|
|||
|
||||
$aaBBs = $this->level->getCubes($this, $this->boundingBox->addCoord($dx, $dy, $dz));
|
||||
|
||||
foreach($aaBBs as $bb){ //TODO optimize
|
||||
foreach($aaBBs as $bb){
|
||||
$dy = $bb->calculateYOffset($this->boundingBox, $dy);
|
||||
}
|
||||
$this->boundingBox->offset(0, $dy, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue