From 3c078c2b91120ade8d74d07a71b4d4e563faf1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=82=A6=E8=A7=A3=E8=AF=B4?= Date: Mon, 5 Aug 2024 13:47:50 +0800 Subject: [PATCH] Fixed incorrect time on Time Display --- .../main/java/ziyue/tjmetro/mod/render/RenderTimeDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric/src/main/java/ziyue/tjmetro/mod/render/RenderTimeDisplay.java b/fabric/src/main/java/ziyue/tjmetro/mod/render/RenderTimeDisplay.java index ceb9edc..2b04861 100644 --- a/fabric/src/main/java/ziyue/tjmetro/mod/render/RenderTimeDisplay.java +++ b/fabric/src/main/java/ziyue/tjmetro/mod/render/RenderTimeDisplay.java @@ -55,7 +55,7 @@ public void render(T entity, float tickDelta, GraphicsHolder graphicsHolder, int }); MainRenderer.scheduleRender(QueuedRenderLayer.TEXT, (newGraphicsHolder, offset) -> { storedMatrixTransformations2.transform(newGraphicsHolder, offset); - IDrawingExtension.drawStringWithFont(newGraphicsHolder, getFormattedTime(entity.getWorld2().getTime()), HorizontalAlignment.CENTER, VerticalAlignment.CENTER, HorizontalAlignment.CENTER, 0, 0.03F, -1, -1, 30, -3276781, -3276781, 2, false, light, true, null); + IDrawingExtension.drawStringWithFont(newGraphicsHolder, getFormattedTime(entity.getWorld2().getLunarTime()), HorizontalAlignment.CENTER, VerticalAlignment.CENTER, HorizontalAlignment.CENTER, 0, 0.03F, -1, -1, 30, -3276781, -3276781, 2, false, light, true, null); newGraphicsHolder.pop(); }); }