Skip to content

Commit ee2dc3f

Browse files
committed
fix: message not found error
1 parent dee825b commit ee2dc3f

File tree

1 file changed

+2
-6
lines changed
  • src/main/java/me/refracdevelopment/simplegems/managers/configuration

1 file changed

+2
-6
lines changed

src/main/java/me/refracdevelopment/simplegems/managers/configuration/ConfigFile.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,12 @@ public boolean getBoolean(String path) {
7272
}
7373

7474
public String getString(String path, boolean check) {
75-
return super.getString(path, null);
75+
return super.getString(path, "String at path '" + path + "' not found.").replace("|", "\u2503");
7676
}
7777

7878
@Override
7979
public String getString(String path) {
80-
if (super.contains(path)) {
81-
return super.getString(path, "String at path '" + path + "' not found.").replace("|", "\u2503");
82-
}
83-
84-
return null;
80+
return super.getString(path, "String at path '" + path + "' not found.").replace("|", "\u2503");
8581
}
8682

8783
@Override

0 commit comments

Comments
 (0)