Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server/inventory): remove invalid durability during Inventory.Load
Some people have random durability on items when converting from linden_inventory; remove invalid data.
- Loading branch information
cc1d7fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attempt to index a nil value (field 'metadata') 297 line
when opening trunk
[{"name":"WEAPON_COMBATPISTOL","slot":1,"count":1,"metadata":{"durability":99.8,"ammo":8,"components":[],"serial":"733343IIN466016"}},{"name":"WEAPON_PISTOL","slot":2,"count":1,"metadata":{"durability":100,"ammo":0,"components":[],"serial":"395040MOV905568"}},{"name":"ammo-9","count":33,"slot":3},{"name":"carokit","count":3,"slot":9},{"name":"radio","count":1,"slot":7},{"name":"blowpipe","count":1,"slot":6},{"name":"repairkit","count":2,"slot":12}]