Skip to content

Commit

Permalink
Update src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPr…
Browse files Browse the repository at this point in the history
…esetListWidget.java

Co-authored-by: Kevin <[email protected]>
  • Loading branch information
Manchick0 and kevinthegreat1 authored Dec 29, 2024
1 parent 919f9b8 commit 50774d4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ public void newEntry() {
public void save() {
var presets = SpeedPresets.getInstance();
presets.clear();
children().forEach(entry -> {
if (entry instanceof SpeedPresetEntry speedPresetEntry)
speedPresetEntry.save();
});
children().stream().filter(SpeedPresetEntry.class::isInstance).map(SpeedPresetEntry.class::cast).forEach(SpeedPresetEntry::save);
presets.savePresets(); // Write down the changes.
}

Expand Down

0 comments on commit 50774d4

Please sign in to comment.