Skip to content

Commit

Permalink
Adds warning for invalid phases
Browse files Browse the repository at this point in the history
  • Loading branch information
NataKilar authored and comma committed Oct 11, 2023
1 parent f099a05 commit c23f0ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/materials/_materials.dm
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ INITIALIZE_IMMEDIATE(/obj/effect/gas_overlay)
if(MAT_PHASE_SOLID)
var/kg = (solid_density*ml)/1000
return kg/molar_mass

else
log_warning("Invalid phase '[phase]' passed to get_mols_from_units!")
return units
// Used by walls when qdel()ing to avoid neighbor merging.
/decl/material/placeholder
name = "placeholder"
Expand Down

0 comments on commit c23f0ad

Please sign in to comment.