This commit is contained in:
XiaoMoMi committed 2024-11-04 04:20:38 +08:00
1 parent f5d2d6a0bc
commit d59ac96f48
2 files changed
+3 -3

No files matched your search

@@ -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()));
+1 -1
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