Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Sep 13, 2023
2 parents 3d5e488 + e48c720 commit 9af2411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/src/net/tnemc/core/transaction/type/PayType.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Optional<TaxEntry> fromTax() {
if(MainConfig.yaml().getBoolean("Core.Transactions.Pay.Tax.Enabled", false)) {
final String tax = MainConfig.yaml().getString("Core.Transactions.Pay.Tax.Sender");
TaxEntry entry;
if(tax.contains("\\%")) {
if(tax.contains("%")) {
entry = new TaxEntry("percent", Double.parseDouble(tax.replace("%", "")));
} else {
entry = new TaxEntry("flat", Double.parseDouble(tax));
Expand All @@ -86,4 +86,4 @@ public Optional<TaxEntry> fromTax() {
}
return Optional.empty();
}
}
}

0 comments on commit 9af2411

Please sign in to comment.