当前成功落下时才下
parent
45dfc21713
commit
429f53c7bb
|
@ -61,7 +61,8 @@ public class UserThread extends Thread{
|
|||
NewClick newClick = (NewClick) o;
|
||||
|
||||
if (newClick.color == (cur.get() ? Cross.BLACK : Cross.WHITE) && newClick.color == self){
|
||||
CalDataUtil.draw(newClick, map);
|
||||
boolean result = CalDataUtil.draw(newClick, map);
|
||||
if (result) {
|
||||
cur.set(!cur.get());
|
||||
|
||||
users.forEach(u -> {
|
||||
|
@ -72,6 +73,7 @@ public class UserThread extends Thread{
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch (Exception e){
|
||||
System.out.println("::" + e.getMessage());
|
||||
System.out.println("连接断开");
|
||||
|
|
Loading…
Reference in New Issue