修复逻辑

main
dai_48k 2024-01-23 11:04:37 +08:00
parent 50ced7a834
commit 0b734f3aa7
1 changed files with 8 additions and 8 deletions

View File

@ -63,15 +63,15 @@ public class UserThread extends Thread{
if (newClick.color == (cur.get() ? Cross.BLACK : Cross.WHITE) && newClick.color == self){
CalDataUtil.draw(newClick, map);
cur.set(!cur.get());
}
users.forEach(u -> {
try {
if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick));
} catch (IOException e) {
e.printStackTrace();
}
});
users.forEach(u -> {
try {
if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick));
} catch (IOException e) {
e.printStackTrace();
}
});
}
} catch (Exception e){
System.out.println("::" + e.getMessage());
System.out.println("连接断开");