Skip to content

Commit

Permalink
Use vanilla translations for graphics state value
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Oct 5, 2023
1 parent d771566 commit 0d2ecfc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/dynamic_fps/impl/compat/ClothConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,18 @@ private static Component volumeMultiplierMessage(int value) {
}

private static Component graphicsStateMessage(Enum<GraphicsState> 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<Component[]> graphicsStateTooltip(GraphicsState graphicsState) {
Expand Down

0 comments on commit 0d2ecfc

Please sign in to comment.