Fixed import errors related to Alchemy data in AdvancedConfig (#4983)

This commit is contained in:
Lorenzo Cardinali 2024-03-11 02:59:15 +01:00 committed by GitHub
parent 7da8c8c83a
commit 04ed2a47d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,7 +627,11 @@ public class AdvancedConfig extends BukkitConfig {
/* ALCHEMY */
public int getCatalysisMaxBonusLevel() {
return config.getInt("Skills.Alchemy.Catalysis.MaxBonusLevel", 1000);
if (mcMMO.isRetroModeEnabled()) {
return config.getInt("Skills.Alchemy.Catalysis.MaxBonusLevel.RetroMode", 1000);
} else {
return config.getInt("Skills.Alchemy.Catalysis.MaxBonusLevel.Standard", 100);
}
}
public double getCatalysisMinSpeed() {