From c433dc64162ac721ba92fab6bf8fab3607bcc8c4 Mon Sep 17 00:00:00 2001 From: Jaxe <42095078+Jaxe-Dev@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:37:18 +0800 Subject: [PATCH] v2.9 - Fixed bubbles appearing on the world map --- README.md | 2 +- source/Core/Bubbler.cs | 2 +- source/Mod.cs | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9ffc796..b81c90d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/source/Core/Bubbler.cs b/source/Core/Bubbler.cs index c8dd770..d5f15c6 100644 --- a/source/Core/Bubbler.cs +++ b/source/Core/Bubbler.cs @@ -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); diff --git a/source/Mod.cs b/source/Mod.cs index 79f390e..7647190 100644 --- a/source/Mod.cs +++ b/source/Mod.cs @@ -9,7 +9,7 @@ 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!; @@ -17,8 +17,7 @@ public Mod(ModContentPack content) : base(content) { Instance = this; - var settings = GetSettings<Settings>(); - settings!.CheckResetRequired(); + GetSettings<Settings>()!.CheckResetRequired(); new Harmony(Id).PatchAll();