DrakiaXYZ 19013a478f If a preset has a different _id property than its object key, output an error and skip it. (!233)
This resolves an issue where a mod with bad preset data is able to break loot generation

Can be tested by changing the "\_id" property of an item preset in globals.json, and seeing the error output to the console.

A better solution for the future may be to deprecate the "\_id" property entirely, and use just the object key, however that would have more far reaching changes compared to this simple fix

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/233
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-24 23:26:27 +00:00
..
2023-12-15 14:06:02 +00:00
2024-02-05 19:03:26 -05:00
2023-03-03 15:23:46 +00:00
2023-12-15 13:59:45 +00:00
2023-10-29 22:20:34 +00:00
2023-11-16 21:42:06 +00:00
2023-03-03 15:23:46 +00:00
2023-11-16 21:42:06 +00:00
2023-12-12 09:50:46 +00:00
2023-11-16 21:42:06 +00:00
2024-02-05 19:03:26 -05:00
2023-12-21 19:02:07 +00:00
2023-11-06 19:39:13 +00:00
2023-11-06 19:39:13 +00:00
2023-11-16 21:42:06 +00:00
2023-11-15 21:12:40 -05:00