aboutsummaryrefslogtreecommitdiff
path: root/fabric
diff options
context:
space:
mode:
authorhackthetime <l4bg0jb7@duck.com>2023-12-05 09:14:59 +0100
committerhackthetime <l4bg0jb7@duck.com>2023-12-05 09:14:59 +0100
commit1f90b12d47118f2a1132f12c39a2977e8c02fa77 (patch)
treed91859fd7a25aed6be449b0bd046bde81bd62c5d /fabric
parent291f3540db145807dbf506aa98374bfd37d1a426 (diff)
downloadBBsentials-1f90b12d47118f2a1132f12c39a2977e8c02fa77.tar.gz
BBsentials-1f90b12d47118f2a1132f12c39a2977e8c02fa77.tar.bz2
BBsentials-1f90b12d47118f2a1132f12c39a2977e8c02fa77.zip
copied changes from ServerSide over. Mostly java doc for packets and changes from constants ton specialised enum classes. such as party packets
Diffstat (limited to 'fabric')
-rw-r--r--fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodes.java2
1 files changed, 2 insertions, 0 deletions
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<NumCode> 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);