diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-07-26 11:06:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 11:06:14 +0200 |
commit | 77eb10263b65dbafac61a5e8ff0be552cd6c4617 (patch) | |
tree | 6142468acdecef29ccfb425e09ce031d434afaf5 /src/main | |
parent | 6a52d3d282a52565d6993a0df56647c9ddf53caa (diff) | |
download | skyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.tar.gz skyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.tar.bz2 skyhanni-77eb10263b65dbafac61a5e8ff0be552cd6c4617.zip |
Fix: Custom Scoreboard Reset Issue (#2252)
Diffstat (limited to 'src/main')
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 |