aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-18 00:47:24 +0200
committernea <nea@nea.moe>2023-05-18 00:47:24 +0200
commit13f2b320c34abff8cbe1daa196a2e5e8f3f79188 (patch)
treeeb8fe94fd990eaa6cab42622d97262f32488f2e0 /src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java
parent5514534d6ba165fdb9c12ec964c03d78de4361bf (diff)
downloadfirmament-13f2b320c34abff8cbe1daa196a2e5e8f3f79188.tar.gz
firmament-13f2b320c34abff8cbe1daa196a2e5e8f3f79188.tar.bz2
firmament-13f2b320c34abff8cbe1daa196a2e5e8f3f79188.zip
Don't remap logging functions
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java8
1 files changed, 4 insertions, 4 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 16ca7c1..f507a37 100644
--- a/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java
+++ b/src/main/java/moe/nea/firmament/mixins/devenv/DisableCommonPacketWarnings.java
@@ -12,24 +12,24 @@ import java.util.Objects;
@Mixin(ClientPlayNetworkHandler.class)
public class DisableCommonPacketWarnings {
- @Redirect(method = "onCustomPayload", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V"))
+ @Redirect(method = "onCustomPayload", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V", remap = false))
public void onCustomPacket(Logger instance, String s, Object o) {
if (!Objects.equals(o, Identifier.of("badlion", "mods"))) {
instance.warn(s, o);
}
}
- @Redirect(method = "onEntityPassengersSet", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;)V"))
+ @Redirect(method = "onEntityPassengersSet", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;)V", remap = false))
public void onUnknownPassenger(Logger instance, String s) {
// Ignore passenger data for unknown entities, since HyPixel just sends a lot of those.
}
- @Redirect(method = "onTeam", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;[Ljava/lang/Object;)V"))
+ @Redirect(method = "onTeam", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;[Ljava/lang/Object;)V", remap = false))
public void onOnTeam(Logger instance, String s, Object[] objects) {
// 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"))
+ @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) {
// Ignore invalid player info, since HyPixel just sends a lot of invalid player info
}