whoops i deleted too much files + remove debug lines

This commit is contained in:
Chayapak 2023-06-11 13:07:08 +07:00
parent 3810b4e611
commit b2d9d994fe
2 changed files with 11 additions and 2 deletions

View file

@ -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();
}

View file

@ -114,7 +114,6 @@ public class Players extends Listener {
try { try {
final MutablePlayerListEntry duplicate = getEntry(newEntry); final MutablePlayerListEntry duplicate = getEntry(newEntry);
if (duplicate != null) { if (duplicate != null) {
System.out.println("there is a duplicate, removing " + duplicate.profile().getId());
removeFromPlayerList(duplicate.profile().getId()); removeFromPlayerList(duplicate.profile().getId());
list.remove(duplicate); list.remove(duplicate);
} }
@ -180,7 +179,6 @@ public class Players extends Listener {
return packet; return packet;
} }
System.out.println("removing " + uuid);
removeFromPlayerList(uuid); removeFromPlayerList(uuid);
list.remove(target); list.remove(target);