mirror of
https://github.com/shansen/EggCatcher.git
synced 2025-02-18 11:31:19 +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 (this.preventCatchingBabyAnimals) {
|
||||||
if (entity instanceof Animals) {
|
if (entity instanceof Ageable) {
|
||||||
if (!((Animals) entity).isAdult()) {
|
if (!((Ageable) entity).isAdult()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user