diff options
author | Linnea Gräf <nea@nea.moe> | 2024-01-21 14:06:34 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-01-21 14:06:34 +0100 |
commit | 3e1f75e32253bca3312f478a60d315bec37bc112 (patch) | |
tree | 14260e41bd2d8669d6d3ffa9a9a30d1d9ee2fe6c /src/main/java/moe/nea/firmament/mixins | |
parent | 18ebd21cb0f97dea8367e65002e0bf32e5c686e2 (diff) | |
download | Firmament-3e1f75e32253bca3312f478a60d315bec37bc112.tar.gz Firmament-3e1f75e32253bca3312f478a60d315bec37bc112.tar.bz2 Firmament-3e1f75e32253bca3312f478a60d315bec37bc112.zip |
Bump to 1.20.4
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins')
-rw-r--r-- | src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java | 6 |
1 files changed, 3 insertions, 3 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 9cc0270..ef4f2d6 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"), cancellable = true) + @Inject(method = "warnOnUnknownPayload", at = @At("HEAD"), cancellable = true) public void onCustomPacketError(CustomPayload customPayload, CallbackInfo ci) { if (Objects.equals(customPayload.id(), Identifier.of("badlion", "mods"))) { ci.cancel(); @@ -38,8 +38,8 @@ public class DisableCommonPacketWarnings { // Ignore data for unknown teams, since HyPixel just sends a lot of invalid team data. } - @Redirect(method = "onPlayerList", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V", remap = false)) - public void onOnPlayerList(Logger instance, String s, Object o) { + @Redirect(method = "onPlayerList", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false)) + public void onOnPlayerList(Logger instance, String s, Object o, Object o2) { // Ignore invalid player info, since HyPixel just sends a lot of invalid player info } |