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);