Add configurable F3 Debug (#78)

Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
This commit is contained in:
brandynandMaya authored and GitHub committed 2025-05-25 19:38:18 -06:00
1 parent 7b767d52c5
commit bcf96ed130
2 files changed
+6 -1

No files matched your search

@@ -35,7 +35,7 @@ public final class DebugHandler {
@SubscribeEvent
public void onDrawDebugText(RenderGameOverlayEvent.Text event) {
World world = Minecraft.getMinecraft().theWorld;
if(Minecraft.getMinecraft().gameSettings.showDebugInfo) {
if(Minecraft.getMinecraft().gameSettings.showDebugInfo && ConfigHandler.showF3Debug) {
event.left.add(null);
String version = LibMisc.VERSION;
if(version.contains("GRADLE"))
@@ -48,6 +48,8 @@ public final class ConfigHandler {
public static boolean enableDefaultRecipes = true;
public static boolean showF3Debug = true;
public static boolean useShaders = true;
public static boolean lexiconRotatingItems = true;
public static boolean lexiconJustifiedText = false;
@@ -210,6 +212,9 @@ public final class ConfigHandler {
desc = "The ID of the dimension to use";
fancySkyboxDimensions = loadPropIntSet("fancySkybox.customDimID", desc, fancySkyboxDimensions);
desc = "Turn on or off the debug info in the F3 screen ingame";
showF3Debug = loadPropBool("showF3Debug", desc, showF3Debug);
desc = "The height of the mana display bar in above the XP bar. You can change this if you have a mod that changes where the XP bar is.";
manaBarHeight = loadPropInt("manaBar.height", desc, manaBarHeight);