aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-29 10:45:00 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-29 10:45:00 +0200
commitd4c12a8786597a38fe1a8e31b5be3835dffbb0c6 (patch)
treeb6f631da2aa5b52c4aef6451d8512637242bdadd /src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java
parentf33aaadbb09e0691479192ad0b5342e8c47f2a1e (diff)
downloadOneConfig-d4c12a8786597a38fe1a8e31b5be3835dffbb0c6.tar.gz
OneConfig-d4c12a8786597a38fe1a8e31b5be3835dffbb0c6.tar.bz2
OneConfig-d4c12a8786597a38fe1a8e31b5be3835dffbb0c6.zip
update hud
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java b/src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java
index e7ba8af..9055862 100644
--- a/src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java
+++ b/src/main/java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java
@@ -1,7 +1,6 @@
package cc.polyfrost.oneconfig.test;
import cc.polyfrost.oneconfig.hud.TextHud;
-import com.google.common.collect.Lists;
import net.minecraft.client.Minecraft;
import java.util.List;
@@ -12,7 +11,9 @@ public class TestMultilineHud_Test extends TextHud {
}
@Override
- protected List<String> getLines() {
- return Lists.newArrayList(String.valueOf(System.currentTimeMillis()), String.valueOf(Minecraft.getSystemTime()));
+ protected void getLines(List<String> lines) {
+ lines.clear();
+ lines.add(String.valueOf(System.currentTimeMillis()));
+ lines.add(String.valueOf(Minecraft.getSystemTime()));
}
}