Skip to content

Commit

Permalink
Fix SQL issue, added message to TNE reload.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Dec 21, 2023
1 parent 2ac1cec commit 39d2be0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
Expand Down

0 comments on commit 39d2be0

Please sign in to comment.