Merge pull request #399 from k-jiang/master; resolves #397 and resolves #394

fix time requirement check #397 #394
This commit is contained in:
Daniel Saukel 2018-05-14 10:21:37 +02:00 committed by GitHub
commit 27abfbf635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -693,7 +693,7 @@ public class DGamePlayer extends DInstancePlayer {
return true;
}
return requirement != 0 && dataTime != -1 && dataTime + requirement * 1000 * 60 * 60 <= System.currentTimeMillis();
return dataTime == -1 || dataTime + requirement * 1000 * 60 * 60 <= System.currentTimeMillis();
}
public void ready() {