Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Marohn <[email protected]>
  • Loading branch information
Combustible committed May 3, 2024
1 parent d4b3918 commit b417a5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Set<String> getSoulLocations() {
return db.listMobLocations();
}

public static List<Component> getDescription(String soulName) {
public static @Nullable List<Component> getDescription(String soulName) {
SoulsDatabase db = SoulsDatabase.getInstance();
SoulEntry soul = db.getSoul(soulName);
if (soul == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SoulPartyEntry implements SoulGroup {
public SoulPartyEntry(List<SoulPartyHistoryEntry> history) throws Exception {
mHistory = history;

String refLabel = history.get(0 ).getLabel();
String refLabel = history.get(0).getLabel();

for (SoulPartyHistoryEntry entry : history) {
if (!entry.getLabel().equals(refLabel)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public SoulsDatabase(Plugin plugin, boolean loadHistory) throws Exception {
mIgnoreNextChange = false;
}
} catch (Exception e) {
mPlugin.getLogger().warning("Caught exception while polling database file: " + e.getMessage());
e.printStackTrace();
}
}, 200, 200);

Expand Down

0 comments on commit b417a5c

Please sign in to comment.