mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Deactivated call to replay because game savin is deactivated..
This commit is contained in:
parent
40c6ba2efc
commit
73fbfa1888
1 changed files with 5 additions and 3 deletions
|
@ -48,9 +48,11 @@ public class ReplayManager {
|
|||
private ConcurrentHashMap<String, ReplaySession> replaySessions = new ConcurrentHashMap<String, ReplaySession>();
|
||||
|
||||
public void replayGame(UUID gameId, UUID userId) {
|
||||
ReplaySession replaySession = new ReplaySession(gameId, userId);
|
||||
replaySessions.put(gameId.toString() + userId.toString(), replaySession);
|
||||
UserManager.getInstance().getUser(userId).replayGame(gameId);
|
||||
if (1 == 2) { // deactivated because replay causes memor leaks
|
||||
ReplaySession replaySession = new ReplaySession(gameId, userId);
|
||||
replaySessions.put(gameId.toString() + userId.toString(), replaySession);
|
||||
UserManager.getInstance().getUser(userId).replayGame(gameId);
|
||||
}
|
||||
}
|
||||
|
||||
public void startReplay(UUID gameId, UUID userId) {
|
||||
|
|
Loading…
Reference in a new issue