Skip to content

Commit

Permalink
Fix ClassCastException in ConfigManager
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Dec 22, 2021
1 parent 0e88e5d commit 1ccb091
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: RedLib
main: redempt.redlib.RedLib
version: 2021-12-22 04:46
version: 2021-12-22 04:59
author: Redempt
api-version: 1.13
load: STARTUP
3 changes: 2 additions & 1 deletion src/redempt/redlib/config/data/ListDataHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public boolean isSet(String path) {

@Override
public String getString(String path) {
return (String) get(path);
Object val = get(path);
return val == null ? null : String.valueOf(val);
}

@Override
Expand Down
3 changes: 2 additions & 1 deletion src/redempt/redlib/config/data/MapDataHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public boolean isSet(String path) {

@Override
public String getString(String path) {
return (String) map.get(path);
Object val = get(path);
return val == null ? null : String.valueOf(val);
}

@Override
Expand Down

0 comments on commit 1ccb091

Please sign in to comment.