I think preserve potions backwards compatability and also update documentation.

This commit is contained in:
t00thpick1
2016-03-01 17:16:59 -05:00
parent f52d9feef8
commit 28a2b9668d
2 changed files with 27 additions and 29 deletions

View File

@ -122,7 +122,7 @@ public class PotionConfig extends ConfigLoader {
name = ChatColor.translateAlternateColorCodes('&', name);
}
short dataValue = Short.parseShort(potion_section.getString("Data"));
short dataValue = Short.parseShort(potion_section.getString("Data", potion_section.getName())); // Default to the section name for backwards compatability
Material material = Material.POTION;
String mat = potion_section.getString("Material", null);