From 0d2ecfcd3a5d8cbf5e28e212e3e5f0e9a27d4143 Mon Sep 17 00:00:00 2001 From: LostLuma Date: Thu, 5 Oct 2023 16:09:10 +0200 Subject: [PATCH] Use vanilla translations for graphics state value --- .../java/dynamic_fps/impl/compat/ClothConfig.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/dynamic_fps/impl/compat/ClothConfig.java b/src/main/java/dynamic_fps/impl/compat/ClothConfig.java index c1606dd2..fc726278 100644 --- a/src/main/java/dynamic_fps/impl/compat/ClothConfig.java +++ b/src/main/java/dynamic_fps/impl/compat/ClothConfig.java @@ -122,7 +122,18 @@ private static Component volumeMultiplierMessage(int value) { } private static Component graphicsStateMessage(Enum graphicsState) { - return localized("config", "graphics_state_" + graphicsState.toString()); + String key; + + if (graphicsState.equals(GraphicsState.DEFAULT)) { + key = "options.gamma.default"; + } else if (graphicsState.equals(GraphicsState.MINIMAL)) { + key = "options.particles.minimal"; + } else { + key = "options.particles.decreased"; + } + + return Component.translatable(key); + // return localized("config", "graphics_state_" + graphicsState.toString()); } private static Optional graphicsStateTooltip(GraphicsState graphicsState) {