Do not error when loading in null materials
This commit is contained in:
@@ -54,9 +54,8 @@ public class WorthConfig extends AbstractConfig {
|
||||
}
|
||||
|
||||
Material material;
|
||||
try {
|
||||
material = Material.getMaterial(key);
|
||||
} catch (Exception e) {
|
||||
if (material == null) {
|
||||
Logger.warning("Invalid material % in trade worth", key);
|
||||
continue;
|
||||
}
|
||||
@@ -81,9 +80,8 @@ public class WorthConfig extends AbstractConfig {
|
||||
}
|
||||
|
||||
Material material;
|
||||
try {
|
||||
material = Material.getMaterial(key);
|
||||
} catch (Exception e) {
|
||||
if (material == null) {
|
||||
Logger.warning("Invalid material % in trade worth", key);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user