From d4c12a8786597a38fe1a8e31b5be3835dffbb0c6 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Wed, 29 Jun 2022 10:45:00 +0200 Subject: update hud --- .../java/cc/polyfrost/oneconfig/test/TestMultilineHud_Test.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/test') 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 getLines() { - return Lists.newArrayList(String.valueOf(System.currentTimeMillis()), String.valueOf(Minecraft.getSystemTime())); + protected void getLines(List lines) { + lines.clear(); + lines.add(String.valueOf(System.currentTimeMillis())); + lines.add(String.valueOf(Minecraft.getSystemTime())); } } -- cgit