war3i4i / ItemDrawers

5 stars 6 forks source link

When dropping a stack near ItemDrawers for the stack #30

Open LordDelacroix opened 6 days ago

LordDelacroix commented 6 days ago

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: ZNetView.ClaimOwnership () (at <94a8ab08dca748d3beb540d5228ac7b0>:0) kg_ItemDrawers.DrawerComponent.Repeat () (at C:/Stuff/RiderProjects/ItemDrawers/DrawerComponent.cs:180)

war3i4i commented 5 days ago

It seems that the item that is dropped on floor is broken and doesn't have ZNetView. Might be a problem / incompatibility with other mod

war3i4i commented 5 days ago

If you can please discover which item / stuff exactly bugs out the mod and maybe some other mod interfere

LordDelacroix commented 5 days ago

This mostly happens when spawning items and the mileage on this varies. First turn off autopick up. create an ItemDrawer with soemthing in it - then spawn 400 of that item - sometimes, not always you get that exception - perhaps if the delay to pick up the items was a tad longer. Most of the time, the ItemDrawer grabs the items before they've completed spawning. This is ALSO reproducible, sometimes, if you eject items from your inventory very quickly.