mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 20:26:34 +01:00
Do not update static lines
This commit is contained in:
parent
1123664ef6
commit
9c47619df4
@ -19,12 +19,8 @@ class Row {
|
|||||||
this.interval = interval;
|
this.interval = interval;
|
||||||
this.current = 0;
|
this.current = 0;
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
|
|
||||||
if(interval < 0) {
|
static_line = interval < 0 || lines.isEmpty() || lines.size() <= 1;
|
||||||
static_line = true;
|
|
||||||
} else {
|
|
||||||
static_line = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(lines.isEmpty()) {
|
if(lines.isEmpty()) {
|
||||||
line = "";
|
line = "";
|
||||||
@ -34,7 +30,7 @@ class Row {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void update() {
|
public void update() {
|
||||||
if (!static_line && !lines.isEmpty()) {
|
if (!static_line) {
|
||||||
if (count >= interval) {
|
if (count >= interval) {
|
||||||
count = 0;
|
count = 0;
|
||||||
current++;
|
current++;
|
||||||
|
Loading…
Reference in New Issue
Block a user