Skip to content

Commit

Permalink
Update for VH 0.214.300
Browse files Browse the repository at this point in the history
  • Loading branch information
Digitalroot committed Apr 1, 2023
1 parent 57a3244 commit 5789425
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Digitalroot.Valheim.Common.Log" Version="1.1.39" />
<PackageReference Include="Digitalroot.Valheim.Common.References" Version="0.212.18">
<PrivateAssets>all</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Digitalroot.Valheim.Common.References" Version="0.212.19" />
<PackageReference Include="Digitalroot.Valheim.Common.Utils" Version="1.0.45" />
<PackageReference Include="ErrorProne.NET.CoreAnalyzers" Version="0.1.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
13 changes: 9 additions & 4 deletions src/Digitalroot.Valheim.PluginInfo/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using BepInEx.Configuration;
using Digitalroot.Valheim.Common;
using HarmonyLib;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.IO;
Expand All @@ -17,7 +16,8 @@ namespace Digitalroot.Valheim.PluginInfo
public partial class Main : BaseUnityPlugin, ITraceableLogging
{
private Harmony _harmony;
[UsedImplicitly] public static ConfigEntry<int> NexusId;
// ReSharper disable once MemberCanBePrivate.Global
public static ConfigEntry<int> NexusId;
public static Main Instance;
private const string JVLGuid = "com.jotunn.jotunn";
private const string CacheName = "chainloader";
Expand Down Expand Up @@ -52,7 +52,7 @@ public Main()
}
}

[UsedImplicitly]
// ReSharper disable once UnusedMember.Local
private void Awake()
{
try
Expand All @@ -66,7 +66,7 @@ private void Awake()
}
}

[UsedImplicitly]
// ReSharper disable once UnusedMember.Local
private void OnDestroy()
{
try
Expand Down Expand Up @@ -328,10 +328,15 @@ public BepInExPluginInfoProxy(BepInEx.PluginInfo pluginInfo, string location)
}

public BepInPlugin Metadata => _pluginInfo.Metadata;
// ReSharper disable once UnusedMember.Local
public IEnumerable<BepInProcess> Processes => _pluginInfo.Processes;
// ReSharper disable once UnusedMember.Local
public IEnumerable<BepInDependency> Dependencies => _pluginInfo.Dependencies;
// ReSharper disable once UnusedMember.Local
public IEnumerable<BepInIncompatibility> Incompatibilities => _pluginInfo.Incompatibilities;
public string Location { get; }
// ReSharper disable once UnusedMember.Local
// ReSharper disable once MemberHidesStaticFromOuterClass
public BaseUnityPlugin Instance => _pluginInfo.Instance;
public override string ToString() => _pluginInfo.ToString();
}
Expand Down
4 changes: 1 addition & 3 deletions src/Digitalroot.Valheim.PluginInfo/Patch.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
using Digitalroot.Valheim.Common;
using HarmonyLib;
using JetBrains.Annotations;
using System;
using System.Reflection;

namespace Digitalroot.Valheim.PluginInfo
{
[UsedImplicitly]
// ReSharper disable once ClassNeverInstantiated.Global
public class Patch
{
[HarmonyPatch(typeof(FejdStartup), nameof(FejdStartup.Start))]
public class PatchFejdStartupStart
{
[UsedImplicitly]
[HarmonyPostfix]
[HarmonyPriority(Priority.Low)]
public static void Postfix()
Expand Down
6 changes: 3 additions & 3 deletions src/Digitalroot.Valheim.PluginInfo/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
},
"Digitalroot.Valheim.Common.References": {
"type": "Direct",
"requested": "[0.212.18, )",
"resolved": "0.212.18",
"contentHash": "7If2WpFYCgDDkF+R6Cdl4pExlTPairmciUeHr4TYapXGW3I1E2DGQyeqwY8nnL33ulp0zPnKGlQWFqrUEOPONA=="
"requested": "[0.212.19, )",
"resolved": "0.212.19",
"contentHash": "zPF0QkHhzkEH7mBZJETkqWt66Jq8Ou7FE4AQ7BJ0hlhlM62R3/099fAnKYeCn8mn51qFQSTQbcE8GUp1xm0IOw=="
},
"Digitalroot.Valheim.Common.Utils": {
"type": "Direct",
Expand Down

0 comments on commit 5789425

Please sign in to comment.