blob: 95fa8d3ae358485b14021fb4ee37553d23d1951f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.keuin.ohmyvanillamc.mixins.fix.disableEntityTrackerEntrySpamming;
import net.minecraft.server.network.EntityTrackerEntry;
import org.apache.logging.log4j.Logger;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(EntityTrackerEntry.class)
public class EntityTrackerEntryMixin {
@Redirect(
method = "sendPackets",
at = @At(
value = "INVOKE",
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;)V",
remap = false
)
)
private void disableWarn(Logger logger, String text) {
// do nothing
}
}
|