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:
@@ -76,7 +76,7 @@ namespace Content.Server.Administration.Commands
|
|||||||
if (gearStr != "")
|
if (gearStr != "")
|
||||||
{
|
{
|
||||||
var equipmentEntity = entityManager.SpawnEntity(gearStr, target.Transform.Coordinates);
|
var equipmentEntity = entityManager.SpawnEntity(gearStr, target.Transform.Coordinates);
|
||||||
inventoryComponent.Equip(slot, equipmentEntity.GetComponent<ItemComponent>());
|
inventoryComponent.Equip(slot, equipmentEntity.GetComponent<ItemComponent>(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user