mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Allow blank currency symbols (#3946)
Fixes a behavior previously possible beforec6de771
I wrote the proper logic inc6de771
to handle blank currency symbols but forgot to remove the Settings check that was preventing blank currency symbols. Fixes #3945.
This commit is contained in:
parent
1258d2f0a1
commit
158d273dbe
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
// A valid currency symbol value must be one non-integer character.
|
||||
private String _getCurrencySymbol() {
|
||||
String value = config.getString("currency-symbol", "$").trim();
|
||||
if (value.length() != 1 || value.matches("\\d")) {
|
||||
if (value.length() > 1 || value.matches("\\d")) {
|
||||
value = "$";
|
||||
}
|
||||
return value;
|
||||
|
|
Loading…
Reference in a new issue