Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
efekos committed Feb 5, 2024
1 parent 48bcd82 commit 59e81cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public Map<UUID,CustomItem> load(JavaPlugin plugin){
HashMap<UUID, CustomItem> map = new HashMap<>();

Path jsonFilePath = getItemsJsonPath(simplerDataPath);
if(!Files.exists(jsonFilePath)) return new HashMap<>();

String s = Files.readString(jsonFilePath);
JsonElement e = JsonParser.parseString(s);
Expand Down

0 comments on commit 59e81cc

Please sign in to comment.