From f3930a9e356c3eb5ad1fbc37081fadd16807a593 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Thu, 19 Nov 2026 02:06:07 +0100 Subject: Reset server status flag for every decoded status response --- .../nochatreports/common/mixins/common/MixinJsonByteBufCodec.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java index 9dc2e28..a0e625d 100644 --- a/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java +++ b/src/main/java/com/aizistral/nochatreports/common/mixins/common/MixinJsonByteBufCodec.java @@ -54,9 +54,10 @@ public class MixinJsonByteBufCodec { @Inject(method = "decode(Lio/netty/buffer/ByteBuf;)Lcom/google/gson/JsonElement;", at = @At("RETURN"), cancellable = true) private void onDecode(ByteBuf buf, CallbackInfoReturnable info) { try { + ServerStatusCache.setPreventsReports(false); JsonElement element = info.getReturnValue(); - if (!this.isServerStatusElement(element)) + if (!element.isJsonObject()) return; JsonObject object = element.getAsJsonObject(); -- cgit v1.2.3