Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Unity Log shows exception "Undefined target method for patch method static bool" #86

Description

@theCrius

Mod: Crafting With Containers

Mod Version: 1.0.14

Describe the bug
The error is showing in the logs when launching the game.

How To Reproduce
Steps to reproduce the behavior:

  1. On a fresh install, install thunderstore and download the mod
  2. Select "launch modded"
  3. Error shows up:
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static bool ABearCodes.Valheim.CraftingWithContainers.Inventoring.InventoryPatches::GetItemReversed(Inventory __instance, string name, System.Collections.Generic.List<ItemDrop+ItemData> ___m_inventory, ItemDrop+ItemData& __result)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
ABearCodes.Valheim.CraftingWithContainers.Plugin.Awake () (at <697b90d1b592472e8017cb3be328c588>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()

Expected behavior
No errors showing up

Screenshots
image

Additional details
Tested without other mods. Still showing up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions