Skip to content

Commit

Permalink
Merge pull request open-osrs#2875 from open-osrs/api-193
Browse files Browse the repository at this point in the history
api: fix loopback in mixin
  • Loading branch information
zeruth authored Dec 10, 2020
2 parents 80b8c4c + c87ac83 commit bbbd6c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ public interface Preferences

int getMusicVolume();

void setMusicVolume(int i);
void setClientMusicVolume(int i);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class RSClientPreferencesMixin implements RSClientPreferences

@Inject
@Override
public void setMusicVolume(int volume)
public void setClientMusicVolume(int volume)
{
if (volume > 0 && client.getPreferences().getMusicVolume() <= 0 && client.getCurrentTrackGroupId() != -1)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ public interface RSClientPreferences extends Preferences
@Import("musicVolume")
@Override
int getMusicVolume();

@Import("musicVolume")
void setMusicVolume(int i);
}

0 comments on commit bbbd6c4

Please sign in to comment.