diff --git a/library/modules/Materials.cpp b/library/modules/Materials.cpp index 343fa99c0..b1a8afcb9 100644 --- a/library/modules/Materials.cpp +++ b/library/modules/Materials.cpp @@ -476,6 +476,12 @@ std::string Materials::getDescription(t_material & mat) return "?"; else { + if (mat.itemType == 0) { + if(mat.subIndex<0) + return "any inorganic"; + else + return this->inorganic[mat.subIndex].id; + } if (mat.subIndex>=this->other.size()) { if(mat.subIndex<0)