minor cleanup

This commit is contained in:
xenohedron 2023-10-15 01:05:25 -04:00
parent 7f2924b764
commit 6e6ecfb339

View file

@ -88,7 +88,7 @@ class GollumObsessedStalkerWatcher extends Watcher {
return;
}
playersPerName.computeIfAbsent(name, k -> new HashSet());
playersPerName.computeIfAbsent(name, k -> new HashSet<>());
playersPerName.get(name).add(playerId);
}
@ -171,7 +171,7 @@ enum GollumObsessedStalkerHint implements Hint {
name = gollumObj.getName();
}
}
if (name.isEmpty()) {
if (name == null || name.isEmpty()) {
return "";
}
@ -194,4 +194,4 @@ enum GollumObsessedStalkerHint implements Hint {
public GollumObsessedStalkerHint copy() {
return instance;
}
}
}