Remove redundant null check in WorthConfig

The revised version of WorthConfig.java removes a redundant check for null material. This null check was duplicated due to a merge.
This commit is contained in:
Teriuihi 2024-07-09 18:34:18 +02:00
parent 09cfc91dc0
commit dc4b618a80

View File

@ -85,10 +85,6 @@ public class WorthConfig extends AbstractConfig {
Logger.warning("Invalid material % in trade worth", key);
continue;
}
if (material == null) {
Logger.warning("Invalid material % in trade worth", key);
continue;
}
map.put(material, new Price(Utilities.round(worth.getDouble(key), 2), material));
}
}