Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Content.Server.GameObjects.Components.Mobs
|
||||
|
||||
public int GetHeatResistance()
|
||||
{
|
||||
if (Owner.GetComponent<InventoryComponent>().TryGetSlotItem(EquipmentSlotDefines.Slots.GLOVES, itemComponent: out ClothingComponent gloves))
|
||||
if (Owner.GetComponent<InventoryComponent>().TryGetSlotItem(EquipmentSlotDefines.Slots.GLOVES, out ClothingComponent? gloves))
|
||||
{
|
||||
return gloves?.HeatResistance ?? int.MinValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user