mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
add unload to potion config
This commit is contained in:
parent
714d9c0ca7
commit
e354e7b89b
@ -68,6 +68,11 @@ public class PotionConfig extends ConfigCollection {
|
|||||||
register();
|
register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void unload() {
|
||||||
|
potionMap.clear();
|
||||||
|
}
|
||||||
|
|
||||||
private void initIngredientLists()
|
private void initIngredientLists()
|
||||||
{
|
{
|
||||||
concoctionsIngredientsTierOne = new ArrayList<>();
|
concoctionsIngredientsTierOne = new ArrayList<>();
|
||||||
@ -110,6 +115,7 @@ public class PotionConfig extends ConfigCollection {
|
|||||||
|
|
||||||
private void loadConcoctions() {
|
private void loadConcoctions() {
|
||||||
try {
|
try {
|
||||||
|
//TODO: Rewrite this
|
||||||
loadConcoctionsTier(concoctionsIngredientsTierOne, getListFromNode(CONCOCTIONS, TIER_ONE_INGREDIENTS));
|
loadConcoctionsTier(concoctionsIngredientsTierOne, getListFromNode(CONCOCTIONS, TIER_ONE_INGREDIENTS));
|
||||||
loadConcoctionsTier(concoctionsIngredientsTierTwo, getListFromNode(CONCOCTIONS, TIER_TWO_INGREDIENTS));
|
loadConcoctionsTier(concoctionsIngredientsTierTwo, getListFromNode(CONCOCTIONS, TIER_TWO_INGREDIENTS));
|
||||||
loadConcoctionsTier(concoctionsIngredientsTierThree, getListFromNode(CONCOCTIONS, TIER_THREE_INGREDIENTS));
|
loadConcoctionsTier(concoctionsIngredientsTierThree, getListFromNode(CONCOCTIONS, TIER_THREE_INGREDIENTS));
|
||||||
|
Loading…
Reference in New Issue
Block a user