diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2024-07-29 00:30:28 -0400 | 
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2024-07-29 00:30:28 -0400 | 
| commit | f3a037701799169066c6cb12b3c7023029b8b281 (patch) | |
| tree | 6e9bb0839152dc52faab8d3a927d077b864a85de /src/main/java/net/sowgro/npehero/levelapi | |
| parent | 0ce09f72f4af26412356b9699d402b52dbcfc94f (diff) | |
| download | NPEhero-f3a037701799169066c6cb12b3c7023029b8b281.tar.gz NPEhero-f3a037701799169066c6cb12b3c7023029b8b281.tar.bz2 NPEhero-f3a037701799169066c6cb12b3c7023029b8b281.zip  | |
Show level and difficulty loading errors in the gui
Diffstat (limited to 'src/main/java/net/sowgro/npehero/levelapi')
| -rw-r--r-- | src/main/java/net/sowgro/npehero/levelapi/Difficulties.java | 2 | ||||
| -rwxr-xr-x | src/main/java/net/sowgro/npehero/levelapi/Levels.java | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/sowgro/npehero/levelapi/Difficulties.java b/src/main/java/net/sowgro/npehero/levelapi/Difficulties.java index cffd95e..ea17e21 100644 --- a/src/main/java/net/sowgro/npehero/levelapi/Difficulties.java +++ b/src/main/java/net/sowgro/npehero/levelapi/Difficulties.java @@ -51,7 +51,7 @@ public class Difficulties {                      Difficulty diff = new Difficulty(cur, level);                      list.add(diff);                  } catch (IOException e) { -                    problems.put("", e); +                    problems.put(cur.getName(), e);                      e.printStackTrace();                  }              } diff --git a/src/main/java/net/sowgro/npehero/levelapi/Levels.java b/src/main/java/net/sowgro/npehero/levelapi/Levels.java index 84ffe51..f6251e9 100755 --- a/src/main/java/net/sowgro/npehero/levelapi/Levels.java +++ b/src/main/java/net/sowgro/npehero/levelapi/Levels.java @@ -40,7 +40,7 @@ public class Levels {                  Level level = new Level(file);                  list.add(level);              } catch (IOException e) { -                problems.put("", e); +                problems.put(file.getName(), e);                  e.printStackTrace();              }          }  | 
