Skip to content

Commit

Permalink
fix: 修复了玩家退出时间记录的逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Aug 7, 2024
1 parent 84b6441 commit 2b46ee3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public boolean onPlayerJoin(String playerName) {
System.out.println("玩家 " + playerName + " 退出时间: " + exitTime);
System.out.println("当前退出时间记录: " + playerExitTimes);

return exitTime != null && currentTime - exitTime <= timeoutDuration ? playerExitTimes.remove(playerName) : false;
return (boolean) (exitTime != null && currentTime - exitTime <= timeoutDuration ? playerExitTimes.remove(playerName) : false);
}


Expand Down

0 comments on commit 2b46ee3

Please sign in to comment.