Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
add checks to prevent redrawing on game exit
Browse files Browse the repository at this point in the history
  • Loading branch information
chirpxiv committed Apr 26, 2023
1 parent 95eb5e1 commit 67d333e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PalettePlus/Services/PaletteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ public unsafe static void BuildCharaPalette(GameObject obj, out Palette palette,
}
}

public unsafe static void RedrawActivePalettes() {
public static void RedrawActivePalettes() {
if (PluginServices.Framework.IsFrameworkUnloading || !PluginServices.ClientState.IsLoggedIn)
return;

foreach ((string,string) key in ActivePalettes.Keys) {
try {
var chara = PluginServices.ObjectTable.FirstOrDefault(a => {
Expand Down

0 comments on commit 67d333e

Please sign in to comment.