Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
LFS: fix NRE with metadata disabled and a mod using legacy event
Browse files Browse the repository at this point in the history
  • Loading branch information
knah committed Dec 11, 2021
1 parent d78873a commit a009950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LagFreeScreenshots/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class EventHandler

internal static void InvokeScreenshotSaved(string filePath, int width, int height, MetadataV2 metadata)
{
OnScreenshotSaved?.Invoke(filePath, width, height, new Metadata(metadata));
OnScreenshotSaved?.Invoke(filePath, width, height, metadata == null ? null : new Metadata(metadata));
}
}
}
2 changes: 1 addition & 1 deletion LagFreeScreenshots/LagFreeScreenshots.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<VrcReferences>true</VrcReferences>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<Version>1.3.0.0</Version>
<Version>1.3.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion LagFreeScreenshots/LagFreeScreenshotsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

// using CameraUtil = ObjectPublicCaSiVeUnique;

[assembly:MelonInfo(typeof(LagFreeScreenshotsMod), "Lag Free Screenshots", "1.3.0", "knah, Protected", "https://github.com/knah/VRCMods")]
[assembly:MelonInfo(typeof(LagFreeScreenshotsMod), "Lag Free Screenshots", "1.3.1", "knah, Protected", "https://github.com/knah/VRCMods")]
[assembly:MelonGame("VRChat", "VRChat")]

namespace LagFreeScreenshots
Expand Down

0 comments on commit a009950

Please sign in to comment.