Fix SetOutfitCommand not working when mob is crit or stunned (#14593)

This commit is contained in:
0x6273
2023-03-13 00:40:02 +01:00
committed by GitHub
parent 56f2474213
commit 3a9c71cc41

View File

@@ -112,7 +112,7 @@ namespace Content.Server.Administration.Commands
pdaComponent.ContainedID.FullName = entityManager.GetComponent<MetaDataComponent>(target).EntityName; pdaComponent.ContainedID.FullName = entityManager.GetComponent<MetaDataComponent>(target).EntityName;
} }
invSystem.TryEquip(target, equipmentEntity, slot.Name, true, inventory: inventoryComponent); invSystem.TryEquip(target, equipmentEntity, slot.Name, silent: true, force: true, inventory: inventoryComponent);
onEquipped?.Invoke(target, equipmentEntity); onEquipped?.Invoke(target, equipmentEntity);
} }