diff --git a/src/main/java/mindustry/plugin/minimods/NoBots.java b/src/main/java/mindustry/plugin/minimods/NoBots.java index 59a9d59..7e58351 100644 --- a/src/main/java/mindustry/plugin/minimods/NoBots.java +++ b/src/main/java/mindustry/plugin/minimods/NoBots.java @@ -57,7 +57,7 @@ public void registerEvents() { Events.on(ConnectPacketEvent.class, connectionEvent -> { // The code is probably blocking and a long db query could tank tps NetConnection con = connectionEvent.connection; - Database.Player pd = Database.getPlayerData(con.uuid); + Database.Player pd = Database.getPlayerData(connectionEvent.packet.uuid); if (pd != null && pd.verified) return; int ip = convertIp(con.address); for (int i = 0; i < ips.length; i++) {