Add delegates to player level conf and wire up xp formula setting

This commit is contained in:
nossr50
2019-04-24 19:46:06 -07:00
parent ba8b73ad4d
commit e8ea502f77
5 changed files with 28 additions and 15 deletions

View File

@@ -1018,7 +1018,7 @@ public final class ExperienceAPI {
* @throws InvalidFormulaTypeException if the given formulaType is not valid
*/
public static int getXpNeededToLevel(int level) {
return mcMMO.getFormulaManager().getCachedXpToLevel(level, ExperienceConfig.getInstance().getFormulaType());
return mcMMO.getFormulaManager().getCachedXpToLevel(level, mcMMO.getConfigManager().getConfigLeveling().getFormulaType());
}
/**