Sometimes, adult entities used to spawn as babies. Not only that, but some of the baby variants were missing. This commit adds any missing variants and fixes the issue with adults turning to babies randomly, by making sure to set any
Summary
This is a…
[ X] Bug fix
[ X] Feature addition
Describe this change in 1-2 sentences:
Sets any ageable entities to adults by default, and only sets them to babies when specified. Also includes missing baby types from #689
Problem
As described in issue #687, entities with ageable variants sometimes spawn as babies. And not only that, some of said baby variants are missing from the MACreature file, as described in issue #689. This pull request makes sure any entities that are not supposed to be babies are set as adults, and adds more baby types.
GitHub issue (optional): #687 and #689
Solution
Simply put, just turn any regular entities to adults, and only turn them into babies when specified. I would've made an if statement by checking e instanceof ageable then turning it into an adult if true, just to save a bit of branches. Sadly, that would break any old versions running Mobarena, since they don't have the ageable option.
Sometimes, adult entities used to spawn as babies. Not only that, but some of the baby variants were missing. This commit adds any missing variants and fixes the issue with adults turning to babies randomly, by making sure to set any
Summary
Problem
As described in issue #687, entities with ageable variants sometimes spawn as babies. And not only that, some of said baby variants are missing from the MACreature file, as described in issue #689. This pull request makes sure any entities that are not supposed to be babies are set as adults, and adds more baby types.
Solution
Simply put, just turn any regular entities to adults, and only turn them into babies when specified. I would've made an if statement by checking
e instanceof ageable
then turning it into an adult if true, just to save a bit of branches. Sadly, that would break any old versions running Mobarena, since they don't have the ageable option.