Clothing/item ECS & cleanup (#9706)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Server.Temperature.Components
|
||||
// TODO: When making into system: Any animal that touches bulb that has no
|
||||
// InventoryComponent but still would have default heat resistance in the future (maybe)
|
||||
if (EntitySystem.Get<InventorySystem>().TryGetSlotEntity(Owner, "gloves", out var slotEntity) &&
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent<ClothingComponent>(slotEntity, out var gloves))
|
||||
IoCManager.Resolve<IEntityManager>().TryGetComponent<GloveHeatResistanceComponent>(slotEntity, out var gloves))
|
||||
{
|
||||
return gloves.HeatResistance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user