Fixed prevention of baby capturing doesn't work on villager.

http://dev.bukkit.org/bukkit-plugins/eggcatcher/tickets/18-prevention-of-baby-capturing-doesnt-work-on-villager/
This commit is contained in:
shansen 2013-12-18 20:25:42 +00:00
parent cbf7880175
commit 370304f1fa

View File

@ -111,8 +111,8 @@ public class EggCatcherEntityListener implements Listener {
}
if (this.preventCatchingBabyAnimals) {
if (entity instanceof Animals) {
if (!((Animals) entity).isAdult()) {
if (entity instanceof Ageable) {
if (!((Ageable) entity).isAdult()) {
return;
}
}