diff --git a/Core/src/net/tnemc/core/currency/loader/DefaultCurrencyLoader.java b/Core/src/net/tnemc/core/currency/loader/DefaultCurrencyLoader.java index c57a5135..a7a965d8 100644 --- a/Core/src/net/tnemc/core/currency/loader/DefaultCurrencyLoader.java +++ b/Core/src/net/tnemc/core/currency/loader/DefaultCurrencyLoader.java @@ -328,6 +328,12 @@ public boolean loadDenomination(Currency currency, File denomFile) { final String plural = denom.getString("Info.Plural", "Dollars"); final BigDecimal weight = BigDecimal.valueOf(denom.getDouble("Options.Weight", 1)); + if(weight.compareTo(BigDecimal.ZERO) <= 0) { + TNECore.log().error("Failed to load denomination: " + denomFile.getName() + ". Invalid Options.Weight Value: " + weight.toPlainString(), DebugLevel.OFF); + return false; + } + + final String material = denom.getString("Options.Material", "PAPER"); Denomination denomination = (currency instanceof ItemCurrency)?