Valheim-Modding/Jotunn

[BUG]

Closed this issue · 1 comments

Details:
Jotunn Version: 2.21.1
Jotunn Submodule(if applicable):
Repeatability(Consistent(100%), Inconsistent(50%), Rare(1%), Unknown(==1)):

dedicated server:
[Warning:Jotunn.EventExtensions] Exception thrown at event InvokeOnVanillaObjectsAvailable in ValheimRaftPlugin.AddCustomPieces:
System.MissingFieldException: Field not found: System.Collections.Generic.List`1 .Hud.m_buildCategoryNames Due to: Could not find field in class
at Jotunn.Managers.PieceManager.AddPieceCategory (System.String name) [0x0000d] in D:\Projects\Jotunn\JotunnLib\Managers\PieceManager.cs:294
at Jotunn.Entities.CustomPiece.set_Category (System.String value) [0x00021] in D:\Projects\Jotunn\JotunnLib\Entities\CustomPiece.cs:44
at Jotunn.Entities.CustomPiece..ctor (UnityEngine.GameObject piecePrefab, System.Boolean fixReference, Jotunn.Configs.PieceConfig pieceConfig) [0x00038] in D:\Projects\Jotunn\JotunnLib\Entities\CustomPiece.cs:120
at ValheimVehicles.Prefabs.Registry.WaterVehiclePrefab.RegisterWaterVehicleShipPrefab () [0x0009e] in <8152f05d0780430a8b6ccefb11efb05a>:0
at ValheimVehicles.Prefabs.Registry.WaterVehiclePrefab.Register (Jotunn.Managers.PrefabManager prefabManager, Jotunn.Managers.PieceManager pieceManager) [0x00000] in <8152f05d0780430a8b6ccefb11efb05a>:0
at ValheimVehicles.Prefabs.PrefabRegistryController.RegisterAllPrefabs () [0x00000] in <8152f05d0780430a8b6ccefb11efb05a>:0
at ValheimVehicles.Prefabs.PrefabRegistryController.Init () [0x000c8] in <8152f05d0780430a8b6ccefb11efb05a>:0
at ValheimRAFT.ValheimRaftPlugin.AddCustomPieces () [0x0001a] in <8152f05d0780430a8b6ccefb11efb05a>:0
at Jotunn.EventExtensions.SafeInvoke (System.Action events) [0x00018] in D:\Projects\Jotunn\JotunnLib\Extensions\EventExtensions.cs:26

Fixed in Jotunn 2.21.2