setoutfit doesn't do mob checks anymore.

Fixes bug where trying to setoutfit a dead/stunned mob would drop the new outfit on the ground, alongside the old outfit.
This commit is contained in:
Vera Aguilera Puerto
2021-01-09 22:29:59 +01:00
parent d709695263
commit 0b7f286cf3

View File

@@ -76,7 +76,7 @@ namespace Content.Server.Administration.Commands
if (gearStr != "")
{
var equipmentEntity = entityManager.SpawnEntity(gearStr, target.Transform.Coordinates);
inventoryComponent.Equip(slot, equipmentEntity.GetComponent<ItemComponent>());
inventoryComponent.Equip(slot, equipmentEntity.GetComponent<ItemComponent>(), false);
}
}