summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAizistral2022-08-07 15:10:09 +0200
committerGitHub2022-08-07 15:10:09 +0200
commit3da6d27b3b3cf286183554b646a0727f27b11aa8 (patch)
tree5a9afa22842b9261cc150bdaf934c324ef59f8f7
parent041e6ca18241135af3f79f2c5db726593c57ab80 (diff)
parent1750f2fd2f6e4ed4a08466b319995a15dbe7405b (diff)
Merge pull request #144 from CraftingDragon007/1.19.2-Fabric
Updated to 1.19.2 #142
-rw-r--r--build.gradle4
-rw-r--r--docs/README.md4
-rw-r--r--docs/changelog.html5
-rw-r--r--gradle.properties10
-rw-r--r--src/main/java/com/aizistral/nochatreports/mixins/client/MixinProfileKeyPairManager.java10
-rw-r--r--src/main/resources/fabric.mod.json2
6 files changed, 19 insertions, 16 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 @@
<h3><b>The Changelog:</b></h3><br/>
+<h5><b>[Release 1.19.2-v1.8.5]:</b></h5>
+<p>
+ &nbsp;- Updated Mod to 1.19.2.<br/>
+<p/><br/><br/>
+
<h5><b>[Release 1.19.1-v1.8.4]:</b></h5>
<p>
&nbsp;- Ensured change from previous release works properly.<br/>
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<Optional<ProfilePublicKey.Data>> info) {
+ @Inject(method = "parsePublicKey", at = @At("HEAD"), cancellable = true)
+ private static void onProfilePublicKeyData(CallbackInfoReturnable<Optional<ProfilePublicKey.Data>> 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..11f1e23 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -33,7 +33,7 @@
"depends": {
"fabricloader": ">=0.14.6",
"fabric": "*",
- "minecraft": "=1.19.1",
+ "minecraft": "=1.19.2",
"java": ">=17"
},
"suggests": {},