mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
spider can climb, mobs can use ladders
This commit is contained in:
parent
f7cf750ce1
commit
20767a883f
3 changed files with 27 additions and 19 deletions
|
|
@ -18,7 +18,7 @@ class TaskFollowParent extends TaskBase
|
|||
|
||||
public function onUpdate(EntityAI $ai)
|
||||
{
|
||||
if(!$ai->entity->isBaby() || !($ai->entity->parent instanceof Entity) && $ai->entity->parent->dead){
|
||||
if(!$ai->entity->isBaby() || !($ai->entity->parent instanceof Entity) || $ai->entity->parent->dead){
|
||||
$this->reset();
|
||||
$ai->entity->parent = null;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue