Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Dec 6, 2023
1 parent a528475 commit 34d2bff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static OptionImpl<Options, ColorSpace> createColorSpaceButton(MinecraftOp

static ControlValueFormatter translateVariableOrDisabled(String key, String disabled) {
return (v) -> {
return v == 0 ? disabled : (Component.translatable(key, v)).getString();
return v == 0 ? Component.literal(disabled) : (Component.translatable(key, v));
};
}

Expand Down

0 comments on commit 34d2bff

Please sign in to comment.