mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-26 18:11:29 +01:00
Fixes Deaths & Mob Kills being reversed on sessions fetched from the db.
This commit is contained in:
parent
74970d26c1
commit
f2f090d7e9
@ -179,7 +179,7 @@ public class SessionsTable extends UserIDTable {
|
||||
int deaths = set.getInt(columnDeaths);
|
||||
int mobKills = set.getInt(columnMobKills);
|
||||
List<Session> sessions = sessionsByServer.getOrDefault(serverName, new ArrayList<>());
|
||||
sessions.add(new Session(id, start, end, deaths, mobKills));
|
||||
sessions.add(new Session(id, start, end, mobKills, deaths));
|
||||
sessionsByServer.put(serverName, sessions);
|
||||
}
|
||||
return sessionsByServer;
|
||||
@ -484,7 +484,7 @@ public class SessionsTable extends UserIDTable {
|
||||
int deaths = set.getInt(columnDeaths);
|
||||
int mobKills = set.getInt(columnMobKills);
|
||||
List<Session> sessions = sessionsByUser.getOrDefault(uuid, new ArrayList<>());
|
||||
sessions.add(new Session(serverID, start, end, deaths, mobKills));
|
||||
sessions.add(new Session(serverID, start, end, mobKills, deaths));
|
||||
sessionsByUser.put(uuid, sessions);
|
||||
}
|
||||
return sessionsByUser;
|
||||
|
Loading…
Reference in New Issue
Block a user