mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-11-18 06:24:17 +01:00
[Hotfix] Fixed some skills and classes not loading
This commit is contained in:
parent
d740ae97c2
commit
ee2dfbae9c
@ -44,19 +44,16 @@ public class RegisteredSkill {
|
||||
categories.add(getHandler().getId());
|
||||
categories.add(triggerType.isPassive() ? "PASSIVE" : "ACTIVE");
|
||||
|
||||
if (config.contains("parameters")) {
|
||||
// Load default modifier formulas and decimal formats.
|
||||
for (String param : handler.getParameters()) {
|
||||
@Nullable var object = config.get("parameters." + param);
|
||||
if (object == null) object = config.get(param); // [Backwards compatibility] Old syntax
|
||||
|
||||
// Load default modifier formulas and decimal formats.
|
||||
for (String param : handler.getParameters()) {
|
||||
@Nullable var object = config.get("parameters." + param);
|
||||
if (object == null) object = config.get(param); // [Backwards compatibility] Old syntax
|
||||
defaultParameters.put(param, ScalingFormula.fromConfig(object, null));
|
||||
|
||||
defaultParameters.put(param, ScalingFormula.fromConfig(object, null));
|
||||
|
||||
// Decimal format
|
||||
if (object instanceof ConfigurationSection && ((ConfigurationSection) object).contains("decimal-format"))
|
||||
parameterDecimalFormats.put(param, new DecimalFormat(((ConfigurationSection) object).getString("decimal-format")));
|
||||
}
|
||||
// Decimal format
|
||||
if (object instanceof ConfigurationSection && ((ConfigurationSection) object).contains("decimal-format"))
|
||||
parameterDecimalFormats.put(param, new DecimalFormat(((ConfigurationSection) object).getString("decimal-format")));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user