blob: 5b885a0c7cac7f4ee8dc79e24e48fe3aeded7b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package com.keuin.ohmyvanillamc.mixins.fix.disableEntityTrackerEntrySpamming;
import com.keuin.ohmyvanillamc.DummyLogger;
import net.minecraft.server.network.EntityTrackerEntry;
import org.apache.logging.log4j.Logger;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(EntityTrackerEntry.class)
public class EntityTrackerEntryMixin {
static {
setLOGGER(new DummyLogger());
}
@Shadow
@Final
private static Logger LOGGER;
@Accessor("LOGGER")
private static Logger getLOGGER() {
throw new AssertionError();
}
@Accessor("LOGGER")
private static void setLOGGER(Logger logger) {
throw new AssertionError();
}
}
|