summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorAizistral2023-09-27 12:16:00 +0200
committerAizistral2023-09-27 12:16:00 +0200
commit40305f74726994b9e0d9d8473e7e1e24c7d91c68 (patch)
treec65d903404cbfb544a1a191d220899a73a65646e /src/main/java
parent59725d693eae85f707329064dc3cdba95d355731 (diff)
Remove server-sided `enforceSecureProfile` spoof
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinServerStatus.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinServerStatus.java b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinServerStatus.java
index 6324e22..e7efd26 100644
--- a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinServerStatus.java
+++ b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinServerStatus.java
@@ -20,20 +20,6 @@ public class MixinServerStatus implements ServerDataExtension {
private boolean preventsChatReports;
- /**
- * @reason Spoof the value of "enforcesSecureChat" in case conversion to system messages is enabled.
- * There is no way for client to verify the value of the option in such case, so that's one less
- * annoying warning.
- * @author Aizistral
- */
-
- @Inject(method = "enforcesSecureChat", at = @At("HEAD"), cancellable = true)
- public void onSecureChatCheck(CallbackInfoReturnable<Boolean> info) {
- if (NCRConfig.getCommon().convertToGameMessage()) {
- info.setReturnValue(true);
- }
- }
-
@Override
public boolean preventsChatReports() {
var self = (ServerStatus) (Object) this;