Skip to content

Commit

Permalink
Small bugfix for bubbles
Browse files Browse the repository at this point in the history
  • Loading branch information
RenNagasaki committed Aug 1, 2024
1 parent 4f68173 commit 22f5fa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Echokraut/Echokraut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ private unsafe string GetBubbleName(GameObject? speaker, string text)
if (activeData == -1)
activeData = modelData2;

return $"BB-{territory.PlaceName.Value.Name.ToString()}-{activeData}-{text.Substring(0, 20)}";
var textSubstring = text.Length > 20 ? text.Substring(0, 20) : text;
return $"BB-{territory.PlaceName.Value.Name.ToString()}-{activeData}-{textSubstring}";
}

public void Dispose()
Expand Down

0 comments on commit 22f5fa7

Please sign in to comment.