Merge pull request #2694 from Maximvdw/patch-1

Fixed NPE when skill is not in config
This commit is contained in:
t00thpick1 2016-03-12 17:56:40 -05:00
commit 1488946fc5

View File

@ -451,6 +451,8 @@ public class Config extends AutoUpdateConfigLoader {
public boolean getDoubleDropsDisabled(SkillType skill) {
String skillName = StringUtils.getCapitalized(skill.toString());
ConfigurationSection section = config.getConfigurationSection("Double_Drops." + skillName);
if (section == null)
return false;
Set<String> keys = section.getKeys(false);
boolean disabled = true;