mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-14 11:34:43 +02:00
Conventions.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user