mirror of
https://github.com/shansen/EggCatcher.git
synced 2024-11-26 03:55:44 +01:00
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:
parent
cbf7880175
commit
370304f1fa
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user