Fixed wolf cub sometimes not being removed
This commit is contained in:
parent
db3106d8a4
commit
6a6a589cb7
@ -164,12 +164,12 @@ public class PerkWolf extends SmashPerk
|
||||
wolfIterator.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!wolf.isValid() || (UtilEnt.isGrounded(wolf) && wolf.getTicksLived() > WOLF_MAX_TICKS))
|
||||
{
|
||||
wolf.remove();
|
||||
wolfIterator.remove();
|
||||
}
|
||||
}
|
||||
|
||||
if (!wolf.isValid() || (UtilEnt.isGrounded(wolf) && wolf.getTicksLived() > WOLF_MAX_TICKS))
|
||||
{
|
||||
wolf.remove();
|
||||
wolfIterator.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user