mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 23:19:15 +00:00
3.0.7.1
This commit is contained in:
@@ -201,7 +201,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
|
|||||||
this.registerPlayerPlaceholder("%np_gradient_" + i + "%", (player) -> {
|
this.registerPlayerPlaceholder("%np_gradient_" + i + "%", (player) -> {
|
||||||
int currentTicks = MainTask.getTicks();
|
int currentTicks = MainTask.getTicks();
|
||||||
double progress = currentTicks * 0.01 * speed;
|
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++) {
|
for (int i = 1; i <= 20; i++) {
|
||||||
@@ -209,7 +209,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
|
|||||||
this.registerSharedPlaceholder("%shared_np_gradient_" + i + "%", () -> {
|
this.registerSharedPlaceholder("%shared_np_gradient_" + i + "%", () -> {
|
||||||
int currentTicks = MainTask.getTicks();
|
int currentTicks = MainTask.getTicks();
|
||||||
double progress = currentTicks * 0.01 * speed;
|
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()));
|
this.registerPlayerPlaceholder("%np_is_showing%", (player) -> String.valueOf(player.isToggleablePreviewing()));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Project settings
|
# Project settings
|
||||||
# Rule: [major update].[feature update].[bug fix]
|
# Rule: [major update].[feature update].[bug fix]
|
||||||
project_version=3.0.7
|
project_version=3.0.7.1
|
||||||
config_version=32
|
config_version=32
|
||||||
project_group=net.momirealms
|
project_group=net.momirealms
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user