From 8bcf4cb72b745e88ed7d4b421e50fa035b70ce47 Mon Sep 17 00:00:00 2001 From: CraftingDragon007 Date: Sun, 7 Aug 2022 11:28:47 +0200 Subject: Updated to 1.19.2 --- build.gradle | 4 ++-- docs/README.md | 4 ++-- docs/changelog.html | 5 +++++ gradle.properties | 10 +++++----- .../mixins/client/MixinProfileKeyPairManager.java | 10 ++++------ src/main/resources/fabric.mod.json | 4 ++-- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/build.gradle b/build.gradle index 514e73d..8b4103f 100644 --- a/build.gradle +++ b/build.gradle @@ -80,7 +80,7 @@ curseforge { changelog = file('docs/changelog.html') mainArtifact(remapJar) - addGameVersion '1.19.1' + addGameVersion '1.19.2' addGameVersion 'Fabric' addGameVersion 'Quilt' addGameVersion 'Java 17' @@ -111,7 +111,7 @@ modrinth { versionType = "release" changelog = rootProject.file("docs/changelog.html").text uploadFile = remapJar - gameVersions = ["1.19.1"] + gameVersions = ["1.19.2"] loaders = ['fabric', 'quilt'] dependencies { diff --git a/docs/README.md b/docs/README.md index 1c402ac..d14e1fb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,8 +1,8 @@ # No Chat Reports -**Current Version:** 1.19.1-v1.8.4 +**Current Version:** 1.19.2-v1.8.5 -**Minecraft Version:** 1.19.1 +**Minecraft Version:** 1.19.2 Strips cryptographic signatures from player messages, making it impossible to track and associate them with your Mojang/Microsoft account, as well as use Player Chat Reporting feature. diff --git a/docs/changelog.html b/docs/changelog.html index 95d9614..babd58b 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -1,5 +1,10 @@

The Changelog:


+
[Release 1.19.2-v1.8.5]:
+

+  - Updated Mod to 1.19.2.
+



+

[Release 1.19.1-v1.8.4]:

 - Ensured change from previous release works properly.
diff --git a/gradle.properties b/gradle.properties index de782b4..0456626 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,17 +4,17 @@ org.gradle.daemon=false # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.19.1 -yarn_mappings=1.19.1+build.1 -loader_version=0.14.8 +minecraft_version=1.19.2 +yarn_mappings=1.19.2+build.1 +loader_version=0.14.9 # Mod Properties -mod_version=1.19.1-v1.8.4 +mod_version=1.19.2-v1.8.5 maven_group=com.aizistral.nochatreports archives_base_name=NoChatReports-FABRIC # Dependencies -fabric_version=0.58.4+1.19.1 +fabric_version=0.59.0+1.19.2 # Publishing curse_id=634062 diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinProfileKeyPairManager.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinProfileKeyPairManager.java index e1dc8f2..70fa9fa 100644 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinProfileKeyPairManager.java +++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinProfileKeyPairManager.java @@ -1,5 +1,6 @@ package com.aizistral.nochatreports.mixins.client; +import com.aizistral.nochatreports.core.ServerSafetyState; import net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl; import net.minecraft.client.multiplayer.ProfileKeyPairManager; import net.minecraft.util.Signer; @@ -9,9 +10,6 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; -import com.aizistral.nochatreports.NoChatReports; -import com.aizistral.nochatreports.core.ServerSafetyState; - import java.util.Optional; @Mixin(ProfileKeyPairManager.class) @@ -36,10 +34,10 @@ public class MixinProfileKeyPairManager { * @author Aizistral */ - @Inject(method = "profilePublicKeyData", at = @At("HEAD"), cancellable = true) - private void onProfilePublicKeyData(CallbackInfoReturnable> info) { + @Inject(method = "parsePublicKey", at = @At("HEAD"), cancellable = true) + private static void onProfilePublicKeyData(CallbackInfoReturnable> info) { if (!ServerSafetyState.allowsUnsafeServer()) { - info.setReturnValue(Optional.empty()); + info.setReturnValue(null); } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f1fbb09..5583bf3 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -31,9 +31,9 @@ ], "depends": { - "fabricloader": ">=0.14.6", + "fabricloader": ">=0.14.9", "fabric": "*", - "minecraft": "=1.19.1", + "minecraft": "=1.19.2", "java": ">=17" }, "suggests": {}, -- cgit v1.2.3 From 1750f2fd2f6e4ed4a08466b319995a15dbe7405b Mon Sep 17 00:00:00 2001 From: Aizistral Date: Sun, 7 Aug 2022 15:02:06 +0200 Subject: No need to raise modloader dep --- src/main/resources/fabric.mod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 5583bf3..11f1e23 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -31,7 +31,7 @@ ], "depends": { - "fabricloader": ">=0.14.9", + "fabricloader": ">=0.14.6", "fabric": "*", "minecraft": "=1.19.2", "java": ">=17" -- cgit v1.2.3 From 10d2e5ec421c57f11889f571bcf9c83d41495968 Mon Sep 17 00:00:00 2001 From: Madis Date: Sun, 7 Aug 2022 16:20:06 +0300 Subject: Remove version easter egg --- .../nochatreports/core/NoReportsConfig.java | 14 ++------ .../mixins/client/MixinMinecraft.java | 39 ---------------------- .../mixins/client/MixinTitleScreen.java | 29 ---------------- src/main/resources/nochatreports.mixins.json | 2 -- 4 files changed, 2 insertions(+), 82 deletions(-) delete mode 100644 src/main/java/com/aizistral/nochatreports/mixins/client/MixinMinecraft.java delete mode 100644 src/main/java/com/aizistral/nochatreports/mixins/client/MixinTitleScreen.java diff --git a/src/main/java/com/aizistral/nochatreports/core/NoReportsConfig.java b/src/main/java/com/aizistral/nochatreports/core/NoReportsConfig.java index 214c676..c0bd6e8 100644 --- a/src/main/java/com/aizistral/nochatreports/core/NoReportsConfig.java +++ b/src/main/java/com/aizistral/nochatreports/core/NoReportsConfig.java @@ -42,8 +42,8 @@ public class NoReportsConfig { private boolean demandOnClient = true, demandOnServer = false, enableDebugLog = false, convertToGameMessage = false, showServerSafety = true, hideRedChatIndicators = true, hideYellowChatIndicators = true, hideGrayChatIndicators = true, hideWarningToast = true, - alwaysHideReportButton = false, versionEasterEgg = true, disableTelemetry = true, - showReloadButton = true, whitelistAllServers = false; + alwaysHideReportButton = false, disableTelemetry = true, showReloadButton = true, + whitelistAllServers = false; private List whitelistedServers; private static NoReportsConfig getInstance() { @@ -247,16 +247,6 @@ public class NoReportsConfig { return getInstance().alwaysHideReportButton; } - /** - * @return True if "1.19.1" should be changed to "1.19.84" on titlebar and title screen.

- * - * This is true by default. - */ - - public static boolean versionEasterEgg() { - return getInstance().versionEasterEgg; - } - /** * @return True if sending telemetry to Mojang should be disabled.

* diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinMinecraft.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinMinecraft.java deleted file mode 100644 index 1e7b920..0000000 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinMinecraft.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.aizistral.nochatreports.mixins.client; - -import java.time.Instant; -import java.util.UUID; - -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Overwrite; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -import com.aizistral.nochatreports.core.NoReportsConfig; -import com.mojang.authlib.minecraft.BanDetails; -import com.mojang.authlib.minecraft.UserApiService; - -import net.fabricmc.fabric.mixin.client.rendering.MixinInGameHud; -import net.minecraft.client.Minecraft; -import net.minecraft.client.Minecraft.ChatStatus; -import net.minecraft.world.entity.player.ChatVisiblity; - -@Mixin(Minecraft.class) -public class MixinMinecraft { - - /** - * @reason Replace "1.19.1" with "1.19.84" in game window title. No functional purpose. - * @author Aizistral - */ - - @Inject(method = "createTitle", at = @At("RETURN"), cancellable = true, require = 0) - private void onCreateTitle(CallbackInfoReturnable info) { - if (!NoReportsConfig.versionEasterEgg()) - return; - - if (info.getReturnValue().contains("1.19.1")) { - info.setReturnValue(info.getReturnValue().replace("1.19.1", "1.19.84")); - } - } - -} diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinTitleScreen.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinTitleScreen.java deleted file mode 100644 index 513c28c..0000000 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinTitleScreen.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.aizistral.nochatreports.mixins.client; - -import com.aizistral.nochatreports.core.NoReportsConfig; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Redirect; - -import com.mojang.bridge.game.GameVersion; - -import net.minecraft.WorldVersion; -import net.minecraft.client.gui.screens.TitleScreen; - -@Mixin(TitleScreen.class) -public class MixinTitleScreen { - - /** - * @reason Replace "1.19.1" with "1.19.84" in title screen. No functional purpose. - * @author Aizistral - */ - - @Redirect(method = "render", at = @At(value = "INVOKE", remap = true, target = - "Lnet/minecraft/WorldVersion;getName()Ljava/lang/String;"), require = 0) - private String onGetVersionName(WorldVersion version) { - String original = version.getName(); - if (!NoReportsConfig.versionEasterEgg()) return original; - return original.contains("1.19.1") ? original.replace("1.19.1", "1.19.84") : original; - } - -} diff --git a/src/main/resources/nochatreports.mixins.json b/src/main/resources/nochatreports.mixins.json index 4e0f080..10f0fd2 100644 --- a/src/main/resources/nochatreports.mixins.json +++ b/src/main/resources/nochatreports.mixins.json @@ -18,8 +18,6 @@ "client.MixinChatOptionsScreen", "client.MixinProfileKeyPairManager", "client.MixinClientTelemetryManager", - "client.MixinTitleScreen", - "client.MixinMinecraft", "client.MixinPlayerEntry", "client.MixinChatScreen", "client.AccessorDisconnectedScreen", -- cgit v1.2.3 From 9eae67f8aa62d861049584dfc6348e9a69dc7060 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Sun, 7 Aug 2022 15:24:19 +0200 Subject: Build 1.19.2-v1.9.0 coming right up --- docs/README.md | 2 +- docs/changelog.html | 11 ++++++++--- gradle.properties | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index d14e1fb..e732a19 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # No Chat Reports -**Current Version:** 1.19.2-v1.8.5 +**Current Version:** 1.19.2-v1.9.0 **Minecraft Version:** 1.19.2 diff --git a/docs/changelog.html b/docs/changelog.html index babd58b..2619a47 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -1,8 +1,13 @@

The Changelog:


-
[Release 1.19.2-v1.8.5]:
-

-  - Updated Mod to 1.19.2.
+

[Release 1.19.2-v1.9.0]:
+

+ - First release for 1.19.2 (thanks CraftingDragon007, #144);
+ - Added config option to always skip "Unsafe Server" warning screen (thanks Madis0, #124);
+ - Compressed some of the GUI textures (thanks Madis0, #136);
+ - Updated Italian translation (thanks WVam, #126);
+ - Updated Polish translation (thanks GerbilPL, #133);
+ - Added Finnish translation (thanks Joquliina, #137).



[Release 1.19.1-v1.8.4]:
diff --git a/gradle.properties b/gradle.properties index 0456626..434f563 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.19.2+build.1 loader_version=0.14.9 # Mod Properties -mod_version=1.19.2-v1.8.5 +mod_version=1.19.2-v1.9.0 maven_group=com.aizistral.nochatreports archives_base_name=NoChatReports-FABRIC -- cgit v1.2.3 From e7ed3e014f0df81353c32429caf95686ed0dad00 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Sun, 7 Aug 2022 15:27:07 +0200 Subject: Update changelog.html --- docs/changelog.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.html b/docs/changelog.html index 2619a47..09e26fb 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -5,6 +5,7 @@  - First release for 1.19.2 (thanks CraftingDragon007, #144);
 - Added config option to always skip "Unsafe Server" warning screen (thanks Madis0, #124);
 - Compressed some of the GUI textures (thanks Madis0, #136);
+ - Removed version easter egg (thanks Madis0, #145);
 - Updated Italian translation (thanks WVam, #126);
 - Updated Polish translation (thanks GerbilPL, #133);
 - Added Finnish translation (thanks Joquliina, #137).
-- cgit v1.2.3