Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
fix: Fix DH brightness/saturation being locked in the config UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Nov 20, 2023
1 parent 36f1442 commit 1449881
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public void afterDistantHorizonsInit(DhApiEventParam<Void> input) {
}

private void onBrightnessMultiplierChanged(Double brightnessMultiplier) {
DhApi.Delayed.configs.graphics().brightnessMultiplier().setValue(null);
config.shaderpackBrightnessMultipliers.put(BlendiumDhShaderpackPresets.getShaderpackName(), brightnessMultiplier);
saveConfig();

Expand All @@ -25,6 +26,7 @@ private void onBrightnessMultiplierChanged(Double brightnessMultiplier) {
}

private void onSaturationMultiplierChanged(Double saturationMultiplier) {
DhApi.Delayed.configs.graphics().saturationMultiplier().setValue(null);
config.shaderpackSaturationMultipliers.put(BlendiumDhShaderpackPresets.getShaderpackName(), saturationMultiplier);
saveConfig();

Expand Down

0 comments on commit 1449881

Please sign in to comment.