From 93332d625602781a09d087d7bc07e20b5bf13ac8 Mon Sep 17 00:00:00 2001 From: cola98765 Date: Fri, 10 Dec 2021 17:45:54 +0100 Subject: [PATCH] changed debug key to F8 and added chat messages when using debug keys. --- src/main/java/com/seibel/lod/core/api/EventApi.java | 4 +++- .../wrapperInterfaces/config/ILodConfigWrapperSingleton.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/seibel/lod/core/api/EventApi.java b/src/main/java/com/seibel/lod/core/api/EventApi.java index 580319631..b4f3434c4 100644 --- a/src/main/java/com/seibel/lod/core/api/EventApi.java +++ b/src/main/java/com/seibel/lod/core/api/EventApi.java @@ -184,14 +184,16 @@ public class EventApi { if (CONFIG.client().advanced().debugging().getDebugKeybindingsEnabled()) { - if (key == GLFW.GLFW_KEY_F4 && keyAction == GLFW.GLFW_PRESS) + if (key == GLFW.GLFW_KEY_F8 && keyAction == GLFW.GLFW_PRESS) { CONFIG.client().advanced().debugging().setDebugMode(CONFIG.client().advanced().debugging().getDebugMode().getNext()); + MC.sendChatMessage("F8: Set debug mode " + CONFIG.client().advanced().debugging().getDebugMode()); } if (key == GLFW.GLFW_KEY_F6 && keyAction == GLFW.GLFW_PRESS) { CONFIG.client().advanced().debugging().setDrawLods(!CONFIG.client().advanced().debugging().getDrawLods()); + MC.sendChatMessage("F6: Set rendering " + CONFIG.client().advanced().debugging().getDrawLods()); } } } diff --git a/src/main/java/com/seibel/lod/core/wrapperInterfaces/config/ILodConfigWrapperSingleton.java b/src/main/java/com/seibel/lod/core/wrapperInterfaces/config/ILodConfigWrapperSingleton.java index 3f7b7e669..70b4c1492 100644 --- a/src/main/java/com/seibel/lod/core/wrapperInterfaces/config/ILodConfigWrapperSingleton.java +++ b/src/main/java/com/seibel/lod/core/wrapperInterfaces/config/ILodConfigWrapperSingleton.java @@ -437,7 +437,7 @@ public interface ILodConfigWrapperSingleton boolean DEBUG_KEYBINDINGS_ENABLED_DEFAULT = true; String DEBUG_KEYBINDINGS_ENABLED_DESC = "" - + " If true the F4 key can be used to cycle through the different debug modes. \n" + + " If true the F8 key can be used to cycle through the different debug modes. \n" + " and the F6 key can be used to enable and disable LOD rendering."; boolean getDebugKeybindingsEnabled(); void setDebugKeybindingsEnabled(boolean newEnableDebugKeybindings);