Skip to content

Commit

Permalink
Version 1.0.1 - Hotfix
Browse files Browse the repository at this point in the history
Hotfix
I'm not sure if there's a widespread issue or if in development, I did something to corrupt my character data file, but, I got there.

So, hooking into a different method, to stay away from character selection screen issues.
  • Loading branch information
Vapok committed Feb 14, 2023
1 parent 11beb4c commit 39e4510
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions PATCHNOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Shield Me Bruh! Patchnotes

# 1.0.1 - Initial Release - Hotfix
* Changed the way I'm detecting player being loaded.

# 1.0.0 - Initial Release

* Provides an option to use the middle-mouse button on a Shield while browsing the inventory to select a shield that will be automatically equipped when a one-handed weapon is equipped.
Expand Down
3 changes: 3 additions & 0 deletions ShieldMeBruh/Features/AutoShield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ public static class ResetEvent
{
public static void PerformReset(Player player)
{
if (Player.m_localPlayer == null)
return;

player.UnequipItem(player.m_rightItem, false);
player.UnequipItem(player.m_leftItem, false);
OnResetEvent.Invoke(ShieldMeBruh.AutoShield, EventArgs.Empty);
Expand Down
2 changes: 1 addition & 1 deletion ShieldMeBruh/Patches/Player_Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace ShieldMeBruh.Patches;

public static class Player_Patches
{
[HarmonyPatch(typeof(Player), nameof(Player.Awake))]
[HarmonyPatch(typeof(Player), nameof(Player.SetLocalPlayer))]
private static class HumanoidEquipItemPatch
{
static void Finalizer(Player __instance)
Expand Down
4 changes: 2 additions & 2 deletions ShieldMeBruh/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
2 changes: 1 addition & 1 deletion ShieldMeBruh/ShieldMeBruh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ShieldMeBruh : BaseUnityPlugin, IPluginInfo
//Module Constants
private const string _pluginId = "vapok.mods.shieldmebruh";
private const string _displayName = "Shield Me Bruh!";
private const string _version = "1.0.0";
private const string _version = "1.0.1";
public static bool ValheimAwake;
public static Waiting Waiter;

Expand Down
Binary file added nexes header.snag
Binary file not shown.
Binary file added nexus header.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nexus header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39e4510

Please sign in to comment.