From b2d9d994fee043da2938b5611d54e35b64e25f40 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 11 Jun 2023 13:07:08 +0700 Subject: [PATCH] whoops i deleted too much files + remove debug lines --- .../mixin/ClientPlayNetworkHandlerInvoker.java | 11 +++++++++++ .../land/chipmunk/chipmunkmod/modules/Players.java | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerInvoker.java diff --git a/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerInvoker.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerInvoker.java new file mode 100644 index 0000000..9cac251 --- /dev/null +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ClientPlayNetworkHandlerInvoker.java @@ -0,0 +1,11 @@ +package land.chipmunk.chipmunkmod.mixin; + +import net.minecraft.client.network.ClientPlayNetworkHandler; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.gen.Invoker; + +@Mixin(ClientPlayNetworkHandler.class) +public interface ClientPlayNetworkHandlerInvoker { + @Invoker("isSecureChatEnforced") + public boolean isSecureChatEnforced(); +} diff --git a/src/main/java/land/chipmunk/chipmunkmod/modules/Players.java b/src/main/java/land/chipmunk/chipmunkmod/modules/Players.java index 58391c7..369dfe8 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/modules/Players.java +++ b/src/main/java/land/chipmunk/chipmunkmod/modules/Players.java @@ -114,7 +114,6 @@ public class Players extends Listener { try { final MutablePlayerListEntry duplicate = getEntry(newEntry); if (duplicate != null) { - System.out.println("there is a duplicate, removing " + duplicate.profile().getId()); removeFromPlayerList(duplicate.profile().getId()); list.remove(duplicate); } @@ -180,7 +179,6 @@ public class Players extends Listener { return packet; } - System.out.println("removing " + uuid); removeFromPlayerList(uuid); list.remove(target);