From 38f96cb1e9341627dcbcb575bc6bc5228ec8de7f Mon Sep 17 00:00:00 2001 From: Zacharias Date: Tue, 5 Nov 2024 16:10:37 +0100 Subject: [PATCH] Fixed bug described in issue #3 > Now the speedometer (and debug screen) is hidden when f1(no gui) is toggled --- .../java/me/zacharias/speedometer/Client.java | 1 + forge/src/main/resources/updateChecker.json | 49 +++++++++++-------- gradle.properties | 2 +- .../src/main/resources/updateChecker.json | 7 +-- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/common/src/main/java/me/zacharias/speedometer/Client.java b/common/src/main/java/me/zacharias/speedometer/Client.java index bad8457..b954dbc 100644 --- a/common/src/main/java/me/zacharias/speedometer/Client.java +++ b/common/src/main/java/me/zacharias/speedometer/Client.java @@ -128,6 +128,7 @@ public class Client { private static void render(GuiGraphics graphics, DeltaTracker deltaTracker) { if(Minecraft.getInstance().player == null) return; + if(Minecraft.getInstance().options.hideGui) return; Entity entity = Minecraft.getInstance().player.getRootVehicle(); Vec3 vec = new Vec3( diff --git a/forge/src/main/resources/updateChecker.json b/forge/src/main/resources/updateChecker.json index 3f028df..8a2d2d2 100644 --- a/forge/src/main/resources/updateChecker.json +++ b/forge/src/main/resources/updateChecker.json @@ -9,7 +9,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20.5": { "1.0": "First version", @@ -20,7 +21,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20.4": { "1.0": "First version", @@ -31,7 +33,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20.3": { "1.0": "First version", @@ -42,7 +45,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20.2": { "1.0": "First version", @@ -53,7 +57,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20.1": { "1.0": "First version", @@ -64,7 +69,8 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "1.20": { "1.0": "First version", @@ -75,28 +81,29 @@ "4.0": "Removed the Size part of the position string, combined the visual and text location strings, updated config version to 3, fixed bug where the text would start to drift of screen if you where too fast", "5.0": "Visual speed display has been added", "5.1": "Added second speed display", - "5.2": "Fixed issue #1" + "5.2": "Fixed issue #1", + "5.2.1": "Fixed issue #3" }, "promos": { - "1.20.6-latest": "5.2", - "1.20.6-recommended": "5.2", + "1.20.6-latest": "5.2.1", + "1.20.6-recommended": "5.2.1", - "1.20.5-latest": "5.2", - "1.20.5-recommended": "5.2", + "1.20.5-latest": "5.2.1", + "1.20.5-recommended": "5.2.1", - "1.20.4-latest": "5.2", - "1.20.4-recommended": "5.2", + "1.20.4-latest": "5.2.1", + "1.20.4-recommended": "5.2.1", - "1.20.3-latest": "5.2", - "1.20.3-recommended": "5.2", + "1.20.3-latest": "5.2.1", + "1.20.3-recommended": "5.2.1", - "1.20.2-latest": "5.2", - "1.20.2-recommended": "5.2", + "1.20.2-latest": "5.2.1", + "1.20.2-recommended": "5.2.1", - "1.20.1-latest": "5.2", - "1.20.1-recommended": "5.2", + "1.20.1-latest": "5.2.1", + "1.20.1-recommended": "5.2.1", - "1.20-latest": "5.2", - "1.20-recommended": "5.2" + "1.20-latest": "5.2.1", + "1.20-recommended": "5.2.1" } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index d6f877a..4aa6863 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx8G minecraft_version=1.21.1 archives_base_name=speedometer -mod_version=6.2 +mod_version=6.2.1 maven_group=me.zacharias architectury_version=13.0.8 diff --git a/neoforge/src/main/resources/updateChecker.json b/neoforge/src/main/resources/updateChecker.json index fd4d84b..ad2f8a7 100644 --- a/neoforge/src/main/resources/updateChecker.json +++ b/neoforge/src/main/resources/updateChecker.json @@ -4,10 +4,11 @@ "6.0": "Lost support for Forge and gain NeoForge support", "6.0.1": "Small bug fix in Parser", "6.1": "Small bug fix in Parser", - "6.2": "Making speedometer and pointer resource pack based" + "6.2": "Making speedometer and pointer resource pack based", + "6.2.1": "Fixed issue #3" }, "promos": { - "1.21-latest": "6.1", - "1.21-recommended": "6.1" + "1.21-latest": "6.2.1", + "1.21-recommended": "6.2.1" } } \ No newline at end of file