Optimizations
This commit is contained in:
@@ -34,12 +34,13 @@ namespace Jovian.EncounterSystem {
|
||||
return;
|
||||
}
|
||||
|
||||
cache = new Dictionary<string, string>();
|
||||
cache = new Dictionary<string, string>(lines?.Count ?? 0);
|
||||
if(lines == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(var line in lines) {
|
||||
for(int i = 0; i < lines.Count; i++) {
|
||||
var line = lines[i];
|
||||
if(line != null && !string.IsNullOrEmpty(line.id)) {
|
||||
cache[line.id] = line.text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user