Improved item tier capacity input

This commit is contained in:
Indyuce 2022-08-19 12:13:18 +02:00
parent 081d14c252
commit 28dd0cb67c

View File

@ -82,7 +82,7 @@ public class ItemTier {
// What are the chances?
chance = config.getDouble("generation.chance");
capacity = config.contains("generation.capacity") ? new NumericStatFormula(config.getConfigurationSection("generation.capacity")) : null;
capacity = config.contains("generation.capacity") ? new NumericStatFormula(config.get("generation.capacity")) : null;
}
@NotNull public String getId() { return id; }