diff --git a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java index f1ea7f6..1aa40ca 100644 --- a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java +++ b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java @@ -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; } }