mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Fixed sending wrong race xml when a player disconnected because xml is getting data from gamestate yacht but the yachts are not updated is player disconnect.
Heartbeat packet was sent out at wrong rate which cause the player disconnect detection to be slow. Heartbeat packet is send out every 200ms now. #story[1055] #pair[hyi25, zyt10]
This commit is contained in:
@@ -60,6 +60,10 @@ public class GameState {
|
||||
yachts.put(sourceId, yacht);
|
||||
}
|
||||
|
||||
public static void removeYacht(Integer yachtId) {
|
||||
yachts.remove(yachtId);
|
||||
}
|
||||
|
||||
public static Boolean getIsRaceStarted() {
|
||||
return isRaceStarted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user