Skip to content

Commit

Permalink
Remove server-sided enforceSecureProfile spoof
Browse files Browse the repository at this point in the history
  • Loading branch information
Aizistral committed Sep 27, 2023
1 parent 59725d6 commit 40305f7
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 40305f7

Please sign in to comment.