SHA256
Migrate to C#12
This commit is contained in:
24 files changed
+42
-42
No files matched your search
@@ -16,7 +16,7 @@ public static class DecorationPatch
|
||||
public static bool IsEnabled =>
|
||||
RenderManager.Instance &&
|
||||
RenderManager.Instance.stage >= RenderStage.Load &&
|
||||
RenderManager.Instance.Configuration?.AdvancedConfig?.HideFailedDecorations == true;
|
||||
RenderManager.Instance.Configuration.AdvancedConfig.HideFailedDecorations;
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether the given sprite is the default placeholder or not-found sprite of the decoration manager.
|
||||
@@ -46,7 +46,7 @@ public static class DecorationPatch
|
||||
{
|
||||
if (IsPlaceholderSprite(visualDec.spriteRenderer.sprite, manager))
|
||||
{
|
||||
visualDec.SetSprite((Sprite)null!);
|
||||
visualDec.SetSprite(null!);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,7 @@ public static class DecorationPatch
|
||||
public static class VisualDecorationSetSpritePatch
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static void Prefix(scrVisualDecoration __instance, ref Sprite? sprite)
|
||||
{
|
||||
if (!IsEnabled || !sprite) return;
|
||||
|
||||
Reference in new issue
Block a user