mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Fix for row interval
This commit is contained in:
parent
094228501b
commit
f633b7dab2
@ -41,7 +41,7 @@ class Driver extends BukkitRunnable {
|
||||
for(int i = 1; i<16; i++) {
|
||||
List<String> rowLines = config.getStringList("Rows." + i + ".Content");
|
||||
if(!rowLines.isEmpty()) {
|
||||
Row row = new Row(rowLines, config.getInt("Interval"));
|
||||
Row row = new Row(rowLines, config.getInt("Rows." + i + ".Interval"));
|
||||
rows.add(row);
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class Row {
|
||||
public Row(List<String> lines, int interval) {
|
||||
this.lines = lines;
|
||||
this.interval = interval;
|
||||
this.current = 1;
|
||||
this.current = 0;
|
||||
this.count = 0;
|
||||
|
||||
if(interval < 0) {
|
||||
@ -29,7 +29,7 @@ class Row {
|
||||
if(lines.isEmpty()) {
|
||||
line = "";
|
||||
} else {
|
||||
line = TextUtils.formatText(lines.get(0));
|
||||
line = TextUtils.formatText(lines.get(current));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user