File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/material/user Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public List<DestinyCharacter> getCharacters() {
169169 public int getTimePlayed () {
170170 if (playTime != -1 ) { return playTime ; }
171171 for (DestinyCharacter c : getCharacters ()) {
172- playTime += c .getMinutesPlayedTotal ();
172+ playTime += Integer . parseInt ( c .getMinutesPlayedTotal () );
173173 }
174174 return playTime ;
175175 }
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public class DestinyCharacter extends ContentFramework {
2727
2828 private BungieUser bungieUser ;
2929
30- private String characterID ;
30+ private String characterID , minutesPlayedTotal ;
3131 private Date lastPlayed ;
32- private int minutesPlayedThisSession , minutesPlayedTotal , lightLevel = -1 ;
32+ private int minutesPlayedThisSession , lightLevel = -1 ;
3333
3434 private Gender gender ;
3535 private DestinyClass d2class ;
@@ -72,9 +72,9 @@ public int getMinutesPlayedThisSession() {
7272 return minutesPlayedThisSession ;
7373 }
7474
75- public int getMinutesPlayedTotal () {
76- if (minutesPlayedTotal == - 1 ) {
77- minutesPlayedTotal = getJO ().get ("minutesPlayedTotal" ).getAsInt ();
75+ public String getMinutesPlayedTotal () {
76+ if (minutesPlayedTotal == null ) {
77+ minutesPlayedTotal = getJO ().get ("minutesPlayedTotal" ).getAsString ();
7878 }
7979 return minutesPlayedTotal ;
8080 }
You can’t perform that action at this time.
0 commit comments