Skip to content

Commit

Permalink
Possible fix for getMillis() logic in Durations.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Dec 27, 2013
1 parent 12f0292 commit 6a6e49d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/Duration.java
Expand Up @@ -232,7 +232,8 @@ public int getTicksAsInt() {
* @return the number of milliseconds.
*/
public long getMillis() {
return (long) (seconds * 1000);
Double millis = seconds * 1000;
return millis.longValue();
}


Expand Down

0 comments on commit 6a6e49d

Please sign in to comment.