Skip to content

Commit 04b8cc7

Browse files
committed
feat: remove report blocks
also remove an option in presets that shouldnt be affected oh and make api default on
1 parent f0dbf5f commit 04b8cc7

3 files changed

Lines changed: 1 addition & 31 deletions

File tree

src/main/java/dev/dfonline/codeclient/config/Config.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Config {
3131
public boolean NoClipEnabled = false;
3232
public boolean PlaceOnAir = false;
3333
public int AirSpeed = 10;
34-
public boolean CodeClientAPI = false;
34+
public boolean CodeClientAPI = true;
3535
public boolean CCDBUG = true;
3636
public boolean CustomBlockInteractions = true;
3737
public boolean CustomTagInteraction = false;
@@ -54,7 +54,6 @@ public class Config {
5454
public boolean ChestPeeker = true;
5555
public int ChestPeekerX = 0;
5656
public int ChestPeekerY = -4;
57-
public boolean ReportBrokenBlock = true;
5857
public boolean ScopeSwitcher = true;
5958
public float UpAngle = 50;
6059
public float DownAngle = 50;
@@ -147,7 +146,6 @@ public void save() {
147146
object.addProperty("ChestPeeker", ChestPeeker);
148147
object.addProperty("ChestPeekerX", ChestPeekerX);
149148
object.addProperty("ChestPeekerY", ChestPeekerY);
150-
object.addProperty("ReportBrokenBlock", ReportBrokenBlock);
151149
object.addProperty("ScopeSwitcher", ScopeSwitcher);
152150
object.addProperty("UpAngle", UpAngle);
153151
object.addProperty("DownAngle", DownAngle);
@@ -542,17 +540,6 @@ public YetAnotherConfigLib getLibConfig() {
542540
)
543541
.controller(TickBoxControllerBuilder::create)
544542
.build())
545-
.option(Option.createBuilder(boolean.class)
546-
.name(Text.translatable("codeclient.config.report_broken_blocks"))
547-
.description(
548-
OptionDescription.of(Text.translatable("codeclient.config.report_broken_blocks.description1"), Text.translatable("codeclient.config.report_broken_blocks.description2")))
549-
.binding(
550-
true,
551-
() -> ReportBrokenBlock,
552-
opt -> ReportBrokenBlock = opt
553-
)
554-
.controller(TickBoxControllerBuilder::create)
555-
.build())
556543
.option(Option.createBuilder(LayerInteractionMode.class)
557544
.name(Text.translatable("codeclient.config.layer_interaction"))
558545
.description(OptionDescription.createBuilder()

src/main/java/dev/dfonline/codeclient/config/preset/ConfigPreset.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public enum ConfigPreset {
1717
config.CodeLayerInteractionMode = Config.LayerInteractionMode.OFF;
1818
config.RecentChestInsert = false;
1919
config.ChestPeeker = false;
20-
config.ReportBrokenBlock = false;
2120
config.ScopeSwitcher = false;
2221
config.TeleportUp = false;
2322
config.TeleportDown = false;
@@ -31,7 +30,6 @@ public enum ConfigPreset {
3130
config.ActionViewer = true;
3231
config.RecentValues = 0;
3332
config.ValueDetails = true;
34-
config.PhaseToggle = false;
3533
config.DestroyItemResetMode = Config.DestroyItemReset.OFF;
3634
config.ShowVariableScopeBelowName = true;
3735
config.CPUDisplay = true;
@@ -64,7 +62,6 @@ public enum ConfigPreset {
6462
config.ParameterGhosts = false;
6563
config.ActionViewer = true;
6664
config.ValueDetails = true;
67-
config.PhaseToggle = true;
6865
config.DestroyItemResetMode = Config.DestroyItemReset.OFF;
6966
config.ShowVariableScopeBelowName = true;
7067
config.CPUDisplay = true;
@@ -95,7 +92,6 @@ public enum ConfigPreset {
9592
config.ParameterGhosts = true;
9693
config.ActionViewer = true;
9794
config.ValueDetails = true;
98-
config.PhaseToggle = true;
9995
config.DestroyItemResetMode = Config.DestroyItemReset.OFF;
10096
config.ShowVariableScopeBelowName = true;
10197
config.CPUDisplay = true;

src/main/resources/assets/codeclient/lang/en_us.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@
103103
"codeclient.config.place_on_air.description2": "This will interfere with other players who don't have this mod, such as helpers!",
104104
"codeclient.config.scope_switcher": "Scope Switcher",
105105
"codeclient.config.scope_switcher.description": "Right click variables to change their scope with a custom UI.",
106-
"codeclient.config.report_broken_blocks": "Report Broken Blocks",
107-
"codeclient.config.report_broken_blocks.description1": "Get a message on breaking a block telling you what it did.",
108-
"codeclient.config.report_broken_blocks.description2": "Only works for Player Event, Entity Event, Function, Call Function, Process, and Start Process.",
109106
"codeclient.config.layer_interaction": "Layer Interaction",
110107
"codeclient.config.layer_interaction.description": "Controls how you interact with code layers, including ones that don't exist.",
111108
"codeclient.config.recent_values": "Recent Values",
@@ -306,16 +303,6 @@
306303
"codeclient.api.disconnected": "The connected app can no longer interact with CodeClient.",
307304
"codeclient.api.scope.invalid": "The connected app requested an invalid permission.",
308305

309-
"codeclient.interaction.broke": "You just broke %s.",
310-
"codeclient.interaction.broke_empty": "You just broke an empty %s.",
311-
312-
"hypercube.codeblock.player_event": "Player Event",
313-
"hypercube.codeblock.entity_event": "Entity Event",
314-
"hypercube.codeblock.function": "Function",
315-
"hypercube.codeblock.call_function": "Call Function",
316-
"hypercube.codeblock.process": "Process",
317-
"hypercube.codeblock.start_process": "Start Process",
318-
319306
"codeclient.command.ping": "Your ping is %s ms.",
320307
"codeclient.command.dfgive.count_above_max": "Maximum stack size is %s",
321308
"codeclient.command.dfgive.count_below_min": "Minimum stack size is 1",

0 commit comments

Comments
 (0)