From b32b0ec83d6eb9ff9236ba4e359064aed5dc3d89 Mon Sep 17 00:00:00 2001 From: Shansen Date: Thu, 11 Jul 2013 02:45:29 +0100 Subject: [PATCH] Fixed bug where tamed animals could not be catched. --- .../EggCatcher/listeners/EggCatcherEntityListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java index 95da32c..d3f4dca 100644 --- a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java +++ b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java @@ -45,7 +45,7 @@ public class EggCatcherEntityListener implements Listener { private final Boolean smokeEffect; private final Boolean nonPlayerCatching; private final Boolean preventCatchingBabyAnimals; - private final Boolean preventCatchingTamableAnimals; + private final Boolean preventCatchingTamedAnimals; private final Boolean preventCatchingShearedSheeps; private final String catchChanceSuccessMessage; private final String catchChanceFailMessage; @@ -72,7 +72,7 @@ public class EggCatcherEntityListener implements Listener { this.catchChanceFailMessage = this.config.getString("Messages.CatchChanceFail"); this.healthPercentageFailMessage = this.config.getString("Messages.HealthPercentageFail"); this.preventCatchingBabyAnimals = this.config.getBoolean("PreventCatchingBabyAnimals", true); - this.preventCatchingTamableAnimals = this.config.getBoolean("PreventCatchingTamableAnimals", true); + this.preventCatchingTamedAnimals = this.config.getBoolean("PreventCatchingTamedAnimals", true); this.preventCatchingShearedSheeps = this.config.getBoolean("PreventCatchingShearedSheeps", true); this.spawnChickenOnFail = this.config.getBoolean("SpawnChickenOnFail", true); this.spawnChickenOnSuccess = this.config.getBoolean("SpawnChickenOnSuccess", false); @@ -116,7 +116,7 @@ public class EggCatcherEntityListener implements Listener { } } - if (this.preventCatchingTamableAnimals) { + if (this.preventCatchingTamedAnimals) { if (entity instanceof Tameable) { if (((Tameable) entity).isTamed()) { return;