summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming')
-rw-r--r--src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java b/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java
new file mode 100644
index 0000000..5b885a0
--- /dev/null
+++ b/src/main/java/com/keuin/ohmyvanillamc/mixins/fix/disableEntityTrackerEntrySpamming/EntityTrackerEntryMixin.java
@@ -0,0 +1,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();
+ }
+
+}