mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fix an NPE when loading potion configs
This commit is contained in:
parent
d5a2dea06b
commit
93013b2db1
@ -117,7 +117,10 @@ public class PotionConfig extends ConfigLoader {
|
|||||||
try {
|
try {
|
||||||
short dataValue = Short.parseShort(potion_section.getName());
|
short dataValue = Short.parseShort(potion_section.getName());
|
||||||
|
|
||||||
String name = ChatColor.translateAlternateColorCodes('&', potion_section.getString("Name"));
|
String name = potion_section.getString("Name");
|
||||||
|
if (name != null) {
|
||||||
|
name = ChatColor.translateAlternateColorCodes('&', name);
|
||||||
|
}
|
||||||
|
|
||||||
List<String> lore = new ArrayList<String>();
|
List<String> lore = new ArrayList<String>();
|
||||||
if (potion_section.contains("Lore")) {
|
if (potion_section.contains("Lore")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user