Simple check for entitiesNo Thanks
You can add simple and smart check to entity owner. If owner isnt 0 => return

Merged post

to prevent using that hook on player's containers, etc
I have done some tests and LootContainer is only present on objects from around the world (owner = 0).

Merged post

var loot = entity.GetComponent<LootContainer>();
if (loot == null || LootContainer.spawnType.AIRDROP.Equals(loot.SpawnType) && !_emptyAirdrop || LootContainer.spawnType.CRASHSITE.Equals(loot.SpawnType) && !_emptyCrashsite) return;
lootEntity.Add(entityId, loot.inventory.itemList.Count);
Locked automatically