Conventions.

This commit is contained in:
GJ 2013-05-14 12:46:45 -04:00
parent 975cbf0bf8
commit f910c76248
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ public final class Fishing {
abstract protected int getVanillaXPBoostModifier();
}
protected static final HashMap<Material, List<Enchantment>> enchantableCache = new HashMap<Material, List<Enchantment>>();
protected static final HashMap<Material, List<Enchantment>> ENCHANTABLE_CACHE = new HashMap<Material, List<Enchantment>>();
public static int fishermansDietRankLevel1 = AdvancedConfig.getInstance().getFishermanDietRankChange();
public static int fishermansDietRankLevel2 = fishermansDietRankLevel1 * 2;

View File

@ -436,8 +436,8 @@ public class FishingManager extends SkillManager {
private List<Enchantment> getPossibleEnchantments(ItemStack treasureDrop) {
Material dropType = treasureDrop.getType();
if (Fishing.enchantableCache.containsKey(dropType)) {
return Fishing.enchantableCache.get(dropType);
if (Fishing.ENCHANTABLE_CACHE.containsKey(dropType)) {
return Fishing.ENCHANTABLE_CACHE.get(dropType);
}
List<Enchantment> possibleEnchantments = new ArrayList<Enchantment>();
@ -448,7 +448,7 @@ public class FishingManager extends SkillManager {
}
}
Fishing.enchantableCache.put(dropType, possibleEnchantments);
Fishing.ENCHANTABLE_CACHE.put(dropType, possibleEnchantments);
return possibleEnchantments;
}