mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Resolving issue #238.
This commit is contained in:
parent
70231b6ae0
commit
6964f7adfc
@ -49,6 +49,10 @@ public class CustomArmorConfig extends ConfigLoader{
|
|||||||
|
|
||||||
private void loadArmor(String armorType, List<Integer> idList) {
|
private void loadArmor(String armorType, List<Integer> idList) {
|
||||||
ConfigurationSection armorSection = config.getConfigurationSection(armorType);
|
ConfigurationSection armorSection = config.getConfigurationSection(armorType);
|
||||||
|
|
||||||
|
if(armorSection == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Set<String> armorConfigSet = armorSection.getKeys(false);
|
Set<String> armorConfigSet = armorSection.getKeys(false);
|
||||||
Iterator<String> iterator = armorConfigSet.iterator();
|
Iterator<String> iterator = armorConfigSet.iterator();
|
||||||
|
|
||||||
|
@ -48,6 +48,10 @@ public class CustomBlocksConfig extends ConfigLoader {
|
|||||||
|
|
||||||
private void loadBlocks(String skillType, List<ItemStack> blockList) {
|
private void loadBlocks(String skillType, List<ItemStack> blockList) {
|
||||||
ConfigurationSection skillSection = config.getConfigurationSection(skillType);
|
ConfigurationSection skillSection = config.getConfigurationSection(skillType);
|
||||||
|
|
||||||
|
if(skillSection == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Set<String> skillConfigSet = skillSection.getKeys(false);
|
Set<String> skillConfigSet = skillSection.getKeys(false);
|
||||||
Iterator<String> iterator = skillConfigSet.iterator();
|
Iterator<String> iterator = skillConfigSet.iterator();
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ public class CustomToolsConfig extends ConfigLoader {
|
|||||||
|
|
||||||
private void loadTool(String toolType, List<Integer> idList) {
|
private void loadTool(String toolType, List<Integer> idList) {
|
||||||
ConfigurationSection toolSection = config.getConfigurationSection(toolType);
|
ConfigurationSection toolSection = config.getConfigurationSection(toolType);
|
||||||
|
|
||||||
|
if(toolSection == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Set<String> toolConfigSet = toolSection.getKeys(false);
|
Set<String> toolConfigSet = toolSection.getKeys(false);
|
||||||
Iterator<String> iterator = toolConfigSet.iterator();
|
Iterator<String> iterator = toolConfigSet.iterator();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user