Skip to content

Commit 69948e3

Browse files
committed
v2.8
- Fixed dictionary crash
1 parent 29489f0 commit 69948e3

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Interaction Bubbles
22

3-
![Mod Version](https://img.shields.io/badge/Mod_Version-2.7-blue)
3+
![Mod Version](https://img.shields.io/badge/Mod_Version-2.8-blue)
44
![RimWorld Version](https://img.shields.io/badge/Built_for_RimWorld-1.4-blue)
55
![Harmony Version](https://img.shields.io/badge/Powered_by_Harmony-2.2.2-blue)\
66
[![Steam Subscribers](https://img.shields.io/steam/downloads/1516158345?color=blue&label=Steam%20Downloads&logo=Steam)](https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345)

source/Core/Bubbler.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ private static void DrawBubble(Pawn pawn, bool isSelected, float scale)
6565
foreach (var bubble in Dictionary[pawn].OrderByDescending(static bubble => bubble.Entry.Tick).ToArray())
6666
{
6767
if (count > Settings.PawnMax.Value) { return; }
68-
if (!bubble.Draw(pos + GetOffset(offset), isSelected, scale))
69-
{
70-
Remove(pawn, bubble);
71-
if (Dictionary[pawn].NullOrEmpty()) { Dictionary.Remove(pawn); }
72-
}
68+
if (!bubble.Draw(pos + GetOffset(offset), isSelected, scale)) { Remove(pawn, bubble); }
7369
offset += (Settings.OffsetDirection.Value.IsHorizontal ? bubble.Width : bubble.Height) + Settings.OffsetSpacing.Value;
7470
count++;
7571
}

source/Mod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public sealed class Mod : Verse.Mod
99
{
1010
public const string Id = "Bubbles";
1111
public const string Name = "Interaction Bubbles";
12-
public const string Version = "2.7";
12+
public const string Version = "2.8";
1313

1414
public static Mod Instance = null!;
1515

0 commit comments

Comments
 (0)