mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Conventions.
This commit is contained in:
parent
975cbf0bf8
commit
f910c76248
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user