Skip to content

Commit

Permalink
Changed volume setting from int to double.
Browse files Browse the repository at this point in the history
  • Loading branch information
HackusatePvP committed May 24, 2024
1 parent 0592727 commit 4493a11
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class SettingsProperties {
private final File file;

private int volume = 50; // Don't want to ear blast people right off the start so half volume should work.
private double volume = 50; // Don't want to ear blast people right off the start so half volume should work.
private boolean fullscreen = false;
private boolean skipTransitions = false;
private boolean skipUnseenText = false;
Expand Down Expand Up @@ -44,7 +44,7 @@ public SettingsProperties() {
} catch (IOException e) {
throw new RuntimeException(e);
}
this.volume = Integer.parseInt(properties.getProperty("volume"));
this.volume = Double.parseDouble(properties.getProperty("volume"));
this.fullscreen = Boolean.parseBoolean(properties.getProperty("fullscreen"));
this.skipTransitions = Boolean.parseBoolean(properties.getProperty("transitions"));
this.skipUnseenText = Boolean.parseBoolean(properties.getProperty("skip-unseen-text"));
Expand All @@ -55,7 +55,7 @@ public double getVolume() {
return volume;
}

public void setVolume(int volume) {
public void setVolume(double volume) {
this.volume = volume;
write("volume", volume + "");
}
Expand Down

0 comments on commit 4493a11

Please sign in to comment.