From 7a71e77b4cc79331b135aa95b4b8c9dbdf9e76ef Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 29 Sep 2023 21:26:19 +0200 Subject: Fix crash in debug log cleaner Introduced when porting to 1.20.2 and not released yet. [no changelog] --- .../moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/moe/nea/firmament/mixins/devenv') diff --git a/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java b/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java index 3d557fc..9cc0270 100644 --- a/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java +++ b/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java @@ -21,7 +21,7 @@ import java.util.Objects; @Mixin(ClientPlayNetworkHandler.class) public class DisableCommonPacketWarnings { - @Inject(method = "method_52801", at = @At("HEAD")) + @Inject(method = "method_52801", at = @At("HEAD"), cancellable = true) public void onCustomPacketError(CustomPayload customPayload, CallbackInfo ci) { if (Objects.equals(customPayload.id(), Identifier.of("badlion", "mods"))) { ci.cancel(); -- cgit