From e37b52523e658cfba7243fcc4fb717f0731672c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kriv=C3=A1cs=20Schr=C3=B8der?= Date: Sun, 29 Sep 2013 10:11:12 +0200 Subject: [PATCH] Don't use wrapper classes for primitive types where not necessary, it reduces performance. --- .../listeners/EggCatcherEntityListener.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java index 9815d0d..a8d64fc 100644 --- a/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java +++ b/src/main/java/me/shansen/EggCatcher/listeners/EggCatcherEntityListener.java @@ -37,24 +37,24 @@ import org.bukkit.plugin.java.JavaPlugin; public class EggCatcherEntityListener implements Listener { - private final Boolean usePermissions; - private final Boolean useCatchChance; - private final Boolean useHealthPercentage; - private final Boolean looseEggOnFail; - private final Boolean useVaultCost; - private final Boolean useItemCost; - private final Boolean explosionEffect; - private final Boolean smokeEffect; - private final Boolean nonPlayerCatching; - private final Boolean preventCatchingBabyAnimals; - private final Boolean preventCatchingTamedAnimals; - private final Boolean preventCatchingShearedSheeps; + private final boolean usePermissions; + private final boolean useCatchChance; + private final boolean useHealthPercentage; + private final boolean looseEggOnFail; + private final boolean useVaultCost; + private final boolean useItemCost; + private final boolean explosionEffect; + private final boolean smokeEffect; + private final boolean nonPlayerCatching; + private final boolean preventCatchingBabyAnimals; + private final boolean preventCatchingTamedAnimals; + private final boolean preventCatchingShearedSheeps; private final String catchChanceSuccessMessage; private final String catchChanceFailMessage; private final String healthPercentageFailMessage; private final String vaultTargetBankAccount; - private final Boolean spawnChickenOnFail; - private final Boolean spawnChickenOnSuccess; + private final boolean spawnChickenOnFail; + private final boolean spawnChickenOnSuccess; FileConfiguration config; JavaPlugin plugin;