Skip to content

Commit

Permalink
Fixed a bug in the ConfigBooleanClient class where the `getComment(…
Browse files Browse the repository at this point in the history
…)` method was not functioning correctly (#51)
  • Loading branch information
DreamingLri authored Aug 14, 2024
1 parent 9ce0d2c commit dfbe0e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import fi.dy.masa.malilib.gui.GuiBase;
import fi.dy.masa.malilib.util.StringUtils;

import java.util.Objects;

public class ConfigBooleanClient extends ConfigBooleanHotkeyed
{
public ConfigBooleanClient(String name, boolean defaultValue, String defaultHotkey, String comment)
Expand All @@ -19,8 +21,8 @@ public ConfigBooleanClient(String name, boolean defaultValue, String defaultHotk
@Override
public String getComment()
{
String comment = super.getComment();

// String comment = super.getComment();
String comment = StringUtils.getTranslatedOrFallback(Objects.requireNonNull(super.getComment()), super.getComment());
if (comment == null)
{
return "";
Expand Down

0 comments on commit dfbe0e2

Please sign in to comment.