修复逻辑

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){ if (newClick.color == (cur.get() ? Cross.BLACK : Cross.WHITE) && newClick.color == self){
CalDataUtil.draw(newClick, map); CalDataUtil.draw(newClick, map);
cur.set(!cur.get()); cur.set(!cur.get());
}
users.forEach(u -> { users.forEach(u -> {
try { try {
if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick)); if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick));
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
}); });
}
} catch (Exception e){ } catch (Exception e){
System.out.println("::" + e.getMessage()); System.out.println("::" + e.getMessage());
System.out.println("连接断开"); System.out.println("连接断开");