aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-07-26 11:06:14 +0200
committerGitHub <noreply@github.com>2024-07-26 11:06:14 +0200
commit77eb10263b65dbafac61a5e8ff0be552cd6c4617 (patch)
tree6142468acdecef29ccfb425e09ce031d434afaf5 /src/main/java/at
parent6a52d3d282a52565d6993a0df56647c9ddf53caa (diff)
downloadskyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.tar.gz
skyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.tar.bz2
skyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.zip
Fix: Custom Scoreboard Reset Issue (#2252)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/CustomScoreboardConfig.java3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/EventsConfig.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/CustomScoreboardConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/CustomScoreboardConfig.java
index bc3dc1fc6..38a749f35 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/CustomScoreboardConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/CustomScoreboardConfig.java
@@ -36,7 +36,8 @@ public class CustomScoreboardConfig {
@ConfigOption(name = "Reset Appearance", desc = "Reset the appearance of the advanced scoreboard.")
@ConfigEditorButton(buttonText = "Reset")
public Runnable reset = () -> {
- scoreboardEntries = ScoreboardElement.defaultOption;
+ scoreboardEntries.clear();
+ scoreboardEntries.addAll(ScoreboardElement.defaultOption);
};
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/EventsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/EventsConfig.java
index 0093b8588..e2663bf55 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/EventsConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/gui/customscoreboard/EventsConfig.java
@@ -23,7 +23,8 @@ public class EventsConfig {
@ConfigOption(name = "Reset Events Priority", desc = "Reset the priority of all events.")
@ConfigEditorButton(buttonText = "Reset")
public Runnable reset = () -> {
- eventEntries = ScoreboardEvent.defaultOption;
+ eventEntries.clear();
+ eventEntries.addAll(ScoreboardEvent.defaultOption);
};
@Expose