fix for static weapons

This commit is contained in:
CWX 2023-08-12 19:24:31 +01:00
parent 8e3af6a893
commit 1e809dba73

View File

@ -61,7 +61,7 @@ public class StaticLootProcessor
public static List<Template> CreateDynamicStaticContainers(RootData rawMapDump) public static List<Template> CreateDynamicStaticContainers(RootData rawMapDump)
{ {
return (from li in rawMapDump.Data.Loot return (from li in rawMapDump.Data.Loot
where (li.IsContainer ?? false) && (!LootDumpProcessorContext.GetStaticWeaponIds().Contains(li.Id)) where (li.IsContainer ?? false) && (!LootDumpProcessorContext.GetStaticWeaponIds().Contains(li.Items[0].Tpl))
select li).ToList(); select li).ToList();
} }