diff options
author | nea <nea@nea.moe> | 2023-09-29 21:26:19 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-29 21:26:19 +0200 |
commit | 7a71e77b4cc79331b135aa95b4b8c9dbdf9e76ef (patch) | |
tree | a2113d3af5df84a3f6757bdaec065a0e0721cfc3 /src/main/java/moe/nea/firmament/mixins | |
parent | a956c44cd7565cb71750f187f5fad77189bb3314 (diff) | |
download | Firmament-7a71e77b4cc79331b135aa95b4b8c9dbdf9e76ef.tar.gz Firmament-7a71e77b4cc79331b135aa95b4b8c9dbdf9e76ef.tar.bz2 Firmament-7a71e77b4cc79331b135aa95b4b8c9dbdf9e76ef.zip |
Fix crash in debug log cleaner
Introduced when porting to 1.20.2 and not released yet.
[no changelog]
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |