mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
I think preserve potions backwards compatability and also update documentation.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user