Skip to content

Commit

Permalink
修复顶贴列表第一次顶贴时间短于配置文件中无效奖励设定值时会报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Josef committed Aug 14, 2020
1 parent 3d2d616 commit 0a192b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>moe.feo</groupId>
<artifactId>BBSToper</artifactId>
<version>3.6.2</version>
<version>3.6.3</version>
<repositories>
<repository>
<id>spigot-repo</id>
Expand Down
2 changes: 1 addition & 1 deletion resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: BBSToper
main: moe.feo.bbstoper.BBSToper
version: 3.6.2
version: 3.6.3
author: Fengshuai(R_Josef)
website: https://www.mcbbs.net/thread-789082-1-1.html
softdepend: [PlaceholderAPI]
Expand Down
4 changes: 4 additions & 0 deletions src/moe/feo/bbstoper/Reward.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public boolean isIntervalTooShort(Calendar thispost, int index) {// 判断顶贴
int x = index + 1;// 从下一个顶贴记录开始遍历
while (true) {
Date lastdate = null;
// 当记录已经全部遍历完,就不用再继续了
if (x >= crawler.Time.size()) {
break;
}
try {
lastdate = bbsformat.parse(crawler.Time.get(x));
} catch (ParseException e) {
Expand Down

0 comments on commit 0a192b3

Please sign in to comment.