Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null object updating chest recipe #31

Open
jpw1991 opened this issue Jul 20, 2023 · 0 comments
Open

null object updating chest recipe #31

jpw1991 opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jpw1991
Copy link
Owner

jpw1991 commented Jul 20, 2023

[Error  :ChebsMercenaries] There was an issue loading your com.chebgonaz.chebsmercenaries.cfg: System.NullReferenceException: Object reference not set to an instance of an object
 at ChebsValheimLibrary.Common.ChebsRecipe.UpdateRecipe (BepInEx.Configuration.ConfigEntry`1[T] craftingCost) [0x0008c] in <44a3e49bab1d440085ca07afd5e56bdf>:0
 at ChebsMercenaries.Structure.MercenaryChest.UpdateRecipe () [0x0000f] in <06042440c4154aaf960862e81793ced8>:0
 at ChebsMercenaries.BasePlugin.ReadConfigValues (System.Object sender, System.IO.FileSystemEventArgs e) [0x00033] in <06042440c4154aaf960862e81793ced8>:0
[Error  :ChebsMercenaries] Please check your config entries for spelling and format!

Investigate cause of above null object. Possible lead:

        public new static void UpdateRecipe()
        {
            ChebsRecipeConfig.UpdateRecipe(ChebsRecipeConfig.CraftingCost);
        }

I dont know why I use new here. Should probably be an override and also call the super's stuff. I don't know - need to sit down and think about this

@jpw1991 jpw1991 added the bug Something isn't working label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant