Hi,
encounter a bug/crash. When I eat the last item it get crashed.
cheers
[Server Error] System.NullReferenceException: Object reference not set to an instance of an object
at XSkills.CollectiblePatch.Postfix (Vintagestory.API.Common.CollectibleObject __instance, System.Single __state, System.Single secondsUsed, Vintagestory.API.Common.ItemSlot slot, Vintagestory.API.Common.EntityAgent byEntity) [0x00043] in <61bec1e14a2242cfb29b731e548e5596>:0
at (wrapper dynamic-method) Vintagestory.API.Common.CollectibleObject.Vintagestory.API.Common.CollectibleObject.tryEatStop_Patch2(Vintagestory.API.Common.CollectibleObject,single,Vintagestory.API.Common.ItemSlot,Vintagestory.API.Common.EntityAgent)
at (wrapper dynamic-method) Vintagestory.API.Common.CollectibleObject.Vintagestory.API.Common.CollectibleObject.OnHeldInteractStop_Patch1(Vintagestory.API.Common.CollectibleObject,single,Vintagestory.API.Common.ItemSlot,Vintagestory.API.Common.EntityAgent,Vintagestory.API.Common.BlockSelection,Vintagestory.API.Common.EntitySelection)
at Vintagestory.API.Common.CollectibleObject.OnHeldUseStop (System.Single secondsPassed, Vintagestory.API.Common.ItemSlot slot, Vintagestory.API.Common.EntityAgent byEntity, Vintagestory.API.Common.BlockSelection blockSel, Vintagestory.API.Common.EntitySelection entitySel, Vintagestory.API.Common.EnumHandInteract useType) [0x00013] in <f3d9f7f646fa41a984a624563c420a1c>:0
at Vintagestory.Server.ServerSystemInventory.HandleHandInteraction (_yPPo82QNBralGM6H4k4fAlG0Umw packet, Vintagestory.Server.ConnectedClient client) [0x0032e] in <421c3a263bfb4dfc9f8411a628754880>:0
at Vintagestory.Server.ServerMain.HandleClientPacket (Vintagestory.Server.ConnectedClient client, System.Byte[] data) [0x0005a] in <421c3a263bfb4dfc9f8411a628754880>:0
at Vintagestory.Server.ServerMain.ProcessNetMessage (Vintagestory.Common.NetIncomingMessage msg, Vintagestory.Common.NetServer mainSocket) [0x00150] in <421c3a263bfb4dfc9f8411a628754880>:0