Fixed wolf cub sometimes not being removed

This commit is contained in:
xGamingDudex 2016-10-21 00:25:37 +02:00
parent db3106d8a4
commit 6a6a589cb7

View File

@ -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();
}
}
}