mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-16 11:45:09 +01:00
feat: title screen blur
- Also fix config changes not being saved
This commit is contained in:
@@ -17,6 +17,10 @@ public class BlurConfig extends MidnightConfig {
|
||||
|
||||
@Entry(category = SCREENS)
|
||||
public static boolean blurContainers = true;
|
||||
@Entry(category = SCREENS)
|
||||
public static boolean blurTitleScreen = false;
|
||||
@Entry(category = SCREENS)
|
||||
public static boolean darkenTitleScreen = false;
|
||||
@Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true)
|
||||
public static int fadeTimeMillis = 300;
|
||||
@Entry(category = ANIMATIONS, min = 0, max = 2000, isSlider = true)
|
||||
@@ -48,6 +52,7 @@ public class BlurConfig extends MidnightConfig {
|
||||
|
||||
@Override
|
||||
public void writeChanges(String modid) {
|
||||
super.writeChanges(modid);
|
||||
MinecraftClient.getInstance().options.getMenuBackgroundBlurriness().setValue(radius);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user