From 1f90b12d47118f2a1132f12c39a2977e8c02fa77 Mon Sep 17 00:00:00 2001 From: hackthetime Date: Tue, 5 Dec 2023 09:14:59 +0100 Subject: copied changes from ServerSide over. Mostly java doc for packets and changes from constants ton specialised enum classes. such as party packets --- fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fabric') diff --git a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java index 897285a..c4517a8 100644 --- a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java +++ b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java @@ -5,6 +5,7 @@ import de.hype.bbsentials.common.api.Formatting; import de.hype.bbsentials.common.chat.Message; import de.hype.bbsentials.common.client.BBsentials; import de.hype.bbsentials.common.mclibraries.EnvironmentCore; +import de.hype.bbsentials.fabric.DebugThread; import net.minecraft.client.MinecraftClient; import net.minecraft.client.option.KeyBinding; import org.lwjgl.glfw.GLFW; @@ -118,6 +119,7 @@ public class NumPadCodes { public void addDefaultCodes(boolean all) { List defaultCodes = new ArrayList(); defaultCodes.add((new NumCode("042", Formatting.DARK_BLUE, "", () -> MinecraftClient.getInstance().execute(() -> MinecraftClient.getInstance().setScreen(new NumPadCodesConfigScreen(this)))))); + defaultCodes.add((new NumCode("0", Formatting.DARK_BLUE, "dev", () -> BBsentials.executionService.execute(() -> ((DebugThread) EnvironmentCore.debug).onNumpadCode())))); defaultCodes.add((new NumCode("11", "/l"))); if (all) { numCodes.addAll(defaultCodes); -- cgit