Skip to content

Commit

Permalink
Whitelist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7003Mars committed Nov 24, 2023
1 parent 3789727 commit 3b53c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mindustry/plugin/minimods/NoBots.java
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 3b53c88

Please sign in to comment.