From 141b33dadcf85fc74a57f69186455266f28c05bb Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 15 Mar 2022 21:30:47 +0100 Subject: [PATCH] give each mc client a destination number when connecting --- serverCommunication/minecraft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverCommunication/minecraft.go b/serverCommunication/minecraft.go index fe0ec58..84973e8 100644 --- a/serverCommunication/minecraft.go +++ b/serverCommunication/minecraft.go @@ -322,9 +322,9 @@ func GenerateDestForNewMinecraftClient() int { func isDestInUsageFromOneMinecraftClient(dest int) bool { for _, mcClient := range cache.MinecraftClients { if mcClient.Dest == dest { - return true + return false } } - return false + return true }