Skip to content

Commit

Permalink
v2.9
Browse files Browse the repository at this point in the history
- Fixed bubbles appearing on the world map
  • Loading branch information
Jaxe-Dev committed Sep 22, 2023
1 parent 69948e3 commit c433dc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Interaction Bubbles

![Mod Version](https://img.shields.io/badge/Mod_Version-2.8-blue)
![Mod Version](https://img.shields.io/badge/Mod_Version-2.9-blue)
![RimWorld Version](https://img.shields.io/badge/Built_for_RimWorld-1.4-blue)
![Harmony Version](https://img.shields.io/badge/Powered_by_Harmony-2.2.2-blue)\
[![Steam Subscribers](https://img.shields.io/steam/downloads/1516158345?color=blue&label=Steam%20Downloads&logo=Steam)](https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345)
Expand Down
2 changes: 1 addition & 1 deletion source/Core/Bubbler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void Draw()

private static void DrawBubble(Pawn pawn, bool isSelected, float scale)
{
if (!pawn.Spawned || pawn.Map != Find.CurrentMap || pawn.Map!.fogGrid!.IsFogged(pawn.Position)) { return; }
if (WorldRendererUtility.WorldRenderedNow || !pawn.Spawned || pawn.Map != Find.CurrentMap || pawn.Map!.fogGrid!.IsFogged(pawn.Position)) { return; }

var pos = GenMapUI.LabelDrawPosFor(pawn, LabelPositionOffset);

Expand Down
5 changes: 2 additions & 3 deletions source/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ public sealed class Mod : Verse.Mod
{
public const string Id = "Bubbles";
public const string Name = "Interaction Bubbles";
public const string Version = "2.8";
public const string Version = "2.9";

public static Mod Instance = null!;

public Mod(ModContentPack content) : base(content)
{
Instance = this;

var settings = GetSettings<Settings>();
settings!.CheckResetRequired();
GetSettings<Settings>()!.CheckResetRequired();

new Harmony(Id).PatchAll();

Expand Down

0 comments on commit c433dc6

Please sign in to comment.