3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

warn about duplicate uuids

Dieser Commit ist enthalten in:
creeper123123321 2020-06-25 11:50:12 -03:00
Ursprung 73eef1727a
Commit 3df7f760a6

Datei anzeigen

@ -2,6 +2,7 @@ package us.myles.ViaVersion.api.platform;
import io.netty.channel.ChannelFutureListener;
import org.jetbrains.annotations.Nullable;
import us.myles.ViaVersion.api.Via;
import us.myles.ViaVersion.api.data.UserConnection;
import java.util.*;
@ -20,7 +21,9 @@ public class ViaConnectionManager {
if (isFrontEnd(connection)) {
UUID id = connection.getProtocolInfo().getUuid();
clients.put(id, connection);
if (clients.put(id, connection) != null) {
Via.getPlatform().getLogger().warning("Duplicate UUID on frontend connection! ("+id+")");
}
}
if (connection.getChannel() != null) {