Hopefully made MI stat placeholders use . as dec separator

This commit is contained in:
Indyuce 2021-11-13 13:03:04 +01:00
parent edd2781fc4
commit 84370f3a3d

View File

@ -21,10 +21,16 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
public class MMOItemsPlaceholders extends PlaceholderExpansion {
private final DecimalFormat oneDigit = new DecimalFormat("0.#"), twoDigits = new DecimalFormat("0.##");
public MMOItemsPlaceholders() {
oneDigit.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance());
twoDigits.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance());
}
@Override
public String getAuthor() {
return "Indyuce";