File tree 3 files changed +11
-2
lines changed
java/io/wispforest/okboomer
resources/assets/ok-boomer/lang
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class OkBoomer implements ClientModInitializer {
19
19
public static final io .wispforest .okboomer .OkConfig CONFIG = io .wispforest .okboomer .OkConfig .createAndLoad ();
20
20
21
21
public static double boomDivisor = 1 ;
22
+ public static double prevBoomDivisor = CONFIG .defaultBoom ();
22
23
public static boolean booming = false ;
23
24
24
25
public static double screenBoom = 1 ;
@@ -62,10 +63,15 @@ && isPressed(BOOM_BINDING)
62
63
63
64
if (booming != nowBooming ) {
64
65
if (booming ) {
66
+ prevBoomDivisor = boomDivisor ;
65
67
boomDivisor = 1 ;
66
68
client .options .smoothCameraEnabled = smoothCameraRestoreValue ;
67
69
} else {
68
- boomDivisor = CONFIG .defaultBoom ();
70
+ if (CONFIG .resumeBoom ()) {
71
+ boomDivisor = prevBoomDivisor ;
72
+ } else {
73
+ boomDivisor = CONFIG .defaultBoom ();
74
+ }
69
75
smoothCameraRestoreValue = client .options .smoothCameraEnabled ;
70
76
71
77
if (CONFIG .useCinematicCamera ()) {
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ public class OkBoomerConfigModel {
15
15
@ RangeConstraint (min = 2 , max = 15 )
16
16
public float defaultBoom = 7.5f ;
17
17
18
+ public boolean resumeBoom = false ;
19
+
18
20
@ RangeConstraint (min = .25 , max = 5 )
19
21
public float boomTransitionSpeed = 1 ;
20
22
Original file line number Diff line number Diff line change 27
27
"text.config.ok-boomer.option.boomScrollSensitivity" : " Boom Scrolling Sensitivity" ,
28
28
"text.config.ok-boomer.option.boomTransition" : " Boom Transition" ,
29
29
"text.config.ok-boomer.option.defaultBoom" : " Default Boom" ,
30
+ "text.config.ok-boomer.option.resumeBoom" : " Resume Boom" ,
30
31
"text.config.ok-boomer.option.boomTransitionSpeed" : " Boom Transition Speed" ,
31
32
"text.config.ok-boomer.category.boomLimits" : " Boom Limits" ,
32
33
"text.config.ok-boomer.option.boomLimits.enableLimits" : " Enable Limits" ,
33
34
"text.config.ok-boomer.option.boomLimits.allowBoomingOut" : " Allow Booming Out" ,
34
35
"text.config.ok-boomer.option.boomLimits.maxBoom" : " Maximum Boom" ,
35
36
"text.config.ok-boomer.option.boomLimits.maxScreenBoom" : " Maximum Screen Boom"
36
- }
37
+ }
You can’t perform that action at this time.
0 commit comments