9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00
This commit is contained in:
XiaoMoMi
2024-11-04 04:20:38 +08:00
parent f5d2d6a0bc
commit d59ac96f48
2 changed files with 3 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
this.registerPlayerPlaceholder("%np_gradient_" + i + "%", (player) -> {
int currentTicks = MainTask.getTicks();
double progress = currentTicks * 0.01 * speed;
return String.format("%.2f", -1 + (progress % 2.0001));
return String.format(Locale.US, "%.2f", -1 + (progress % 2.0001));
});
}
for (int i = 1; i <= 20; i++) {
@@ -209,7 +209,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
this.registerSharedPlaceholder("%shared_np_gradient_" + i + "%", () -> {
int currentTicks = MainTask.getTicks();
double progress = currentTicks * 0.01 * speed;
return String.format("%.2f", -1 + (progress % 2.0001));
return String.format(Locale.US, "%.2f", -1 + (progress % 2.0001));
});
}
this.registerPlayerPlaceholder("%np_is_showing%", (player) -> String.valueOf(player.isToggleablePreviewing()));

View File

@@ -1,6 +1,6 @@
# Project settings
# Rule: [major update].[feature update].[bug fix]
project_version=3.0.7
project_version=3.0.7.1
config_version=32
project_group=net.momirealms