2121
2222public class Config {
2323 private static Config instance ;
24- public boolean NoClipEnabled = true ;
24+ public boolean NoClipEnabled = false ;
2525 public boolean PlaceOnAir = false ;
2626 public int AirSpeed = 10 ;
2727 public boolean CodeClientAPI = false ;
@@ -37,7 +37,6 @@ public class Config {
3737 public float ReachDistance = 5 ;
3838 public boolean AutoFly = false ;
3939 public LayerInteractionMode CodeLayerInteractionMode = LayerInteractionMode .AUTO ;
40- public boolean AirControl = false ;
4140 public boolean FocusSearch = false ;
4241 public CharSetOption SaveCharSet = CharSetOption .UTF_8 ;
4342 public boolean RecentChestInsert = true ;
@@ -78,7 +77,7 @@ public class Config {
7877 public boolean DevNodes = false ;
7978 public boolean GiveUuidNameStrings = true ;
8079 public boolean CPUDisplay = true ;
81- public CPUDisplayCorner CPUDisplayCornerOption = CPUDisplayCorner .TOP_LEFT ;
80+ public CPUDisplayCornerOption CPUDisplayCorner = CPUDisplayCornerOption .TOP_LEFT ;
8281 public boolean HideScopeChangeMessages = true ;
8382 public boolean HighlighterEnabled = true ;
8483 public boolean HighlightExpressions = true ;
@@ -125,7 +124,6 @@ public void save() {
125124 object .addProperty ("ReachDistance" , ReachDistance );
126125 object .addProperty ("AutoFly" , AutoFly );
127126 object .addProperty ("CodeLayerInteractionMode" , CodeLayerInteractionMode .name ());
128- object .addProperty ("AirControl" , AirControl );
129127 object .addProperty ("FocusSearch" , FocusSearch );
130128 object .addProperty ("SaveCharSet" , SaveCharSet .name ());
131129 object .addProperty ("RecentChestInsert" , RecentChestInsert );
@@ -165,7 +163,7 @@ public void save() {
165163 object .addProperty ("DevNodes" , DevNodes );
166164 object .addProperty ("GiveUuidNameStrings" , GiveUuidNameStrings );
167165 object .addProperty ("CPUDisplay" , CPUDisplay );
168- object .addProperty ("CPUDisplayCorner" , CPUDisplayCornerOption .name ());
166+ object .addProperty ("CPUDisplayCorner" , CPUDisplayCorner .name ());
169167 object .addProperty ("HideScopeChangeMessages" , HideScopeChangeMessages );
170168
171169 object .addProperty ("HighlighterEnabled" , HighlighterEnabled );
@@ -337,7 +335,7 @@ public YetAnotherConfigLib getLibConfig() {
337335 .text (Text .translatable ("codeclient.config.noclip.description" ))
338336 .build ())
339337 .binding (
340- true ,
338+ false ,
341339 () -> NoClipEnabled ,
342340 opt -> NoClipEnabled = opt
343341 )
@@ -360,7 +358,7 @@ public YetAnotherConfigLib getLibConfig() {
360358 .build ())
361359 .option (Option .createBuilder (float .class )
362360 .name (Text .translatable ("codeclient.config.angle_up" ))
363- .description (OptionDescription .of (Text .translatable ("codeclient.config.angle_up.description" )))
361+ .description (OptionDescription .of (Text .translatable ("codeclient.config.angle_up.description" ), Text . translatable ( "codeclient.config.requires_noclip" ) ))
364362 .binding (
365363 50F ,
366364 () -> UpAngle ,
@@ -370,7 +368,7 @@ public YetAnotherConfigLib getLibConfig() {
370368 .build ())
371369 .option (Option .createBuilder (float .class )
372370 .name (Text .translatable ("codeclient.config.angle_down" ))
373- .description (OptionDescription .of (Text .translatable ("codeclient.config.angle_down.description" )))
371+ .description (OptionDescription .of (Text .translatable ("codeclient.config.angle_down.description" ), Text . translatable ( "codeclient.config.requires_noclip" ) ))
374372 .binding (50F ,
375373 () -> DownAngle ,
376374 opt -> DownAngle = opt
@@ -379,7 +377,7 @@ public YetAnotherConfigLib getLibConfig() {
379377 .build ())
380378 .option (Option .createBuilder (boolean .class )
381379 .name (Text .translatable ("codeclient.config.tp_up" ))
382- .description (OptionDescription .of (Text .translatable ("codeclient.config.tp_up.description" )))
380+ .description (OptionDescription .of (Text .translatable ("codeclient.config.tp_up.description" ), Text . translatable ( "codeclient.config.requires_noclip" ) ))
383381 .binding (
384382 false ,
385383 () -> TeleportUp ,
@@ -389,7 +387,7 @@ public YetAnotherConfigLib getLibConfig() {
389387 .build ())
390388 .option (Option .createBuilder (boolean .class )
391389 .name (Text .translatable ("codeclient.config.tp_down" ))
392- .description (OptionDescription .of (Text .translatable ("codeclient.config.tp_down.description" )))
390+ .description (OptionDescription .of (Text .translatable ("codeclient.config.tp_down.description" ), Text . translatable ( "codeclient.config.requires_noclip" ) ))
393391 .binding (
394392 false ,
395393 () -> TeleportDown ,
@@ -409,18 +407,6 @@ public YetAnotherConfigLib getLibConfig() {
409407 )
410408 .controller (TickBoxControllerBuilder ::create )
411409 .build ())
412- // .option(Option.createBuilder(boolean.class)
413- // .name(Text.literal("Air Control"))
414- // .description(OptionDescription.createBuilder()
415- // .text(Text.literal("Gives you the same control in air as walking."))
416- // .build())
417- // .binding(
418- // false,
419- // () -> AirControl,
420- // opt -> AirControl = opt
421- // )
422- // .controller(TickBoxController::new)
423- // .build())
424410 .build ())
425411 //</editor-fold>
426412 //<editor-fold desc="Interaction">
@@ -672,15 +658,15 @@ public YetAnotherConfigLib getLibConfig() {
672658 )
673659 .controller (TickBoxControllerBuilder ::create )
674660 .build ())
675- .option (Option .createBuilder (Config . CPUDisplayCorner .class )
661+ .option (Option .createBuilder (CPUDisplayCornerOption .class )
676662 .name (Text .translatable ("codeclient.config.cpu_display_corner.name" ))
677663 .description (OptionDescription .of (Text .translatable ("codeclient.config.cpu_display_corner.description" )))
678664 .binding (
679- CPUDisplayCorner .TOP_LEFT ,
680- () -> CPUDisplayCornerOption ,
681- opt -> CPUDisplayCornerOption = opt
665+ CPUDisplayCornerOption .TOP_LEFT ,
666+ () -> CPUDisplayCorner ,
667+ opt -> CPUDisplayCorner = opt
682668 )
683- .controller (nodeOption -> () -> new EnumController <>(nodeOption , Config . CPUDisplayCorner .class ))
669+ .controller (nodeOption -> () -> new EnumController <>(nodeOption , CPUDisplayCornerOption .class ))
684670 .build ())
685671 .option (Option .createBuilder (Boolean .class )
686672 .name (Text .translatable ("codeclient.config.hide_scope_change_messages" ))
@@ -1017,7 +1003,7 @@ public enum DestroyItemReset {
10171003 }
10181004 }
10191005
1020- public enum CPUDisplayCorner {
1006+ public enum CPUDisplayCornerOption {
10211007 TOP_LEFT ,
10221008 TOP_RIGHT ,
10231009 BOTTOM_LEFT ,
0 commit comments