allow buildingplan to match metal bars

develop
myk002 2020-11-12 19:54:00 -08:00
parent 02a86d761a
commit 6b14a92385
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -224,7 +224,7 @@ bool ItemFilter::matches(df::item *item) const
auto imattype = item->getActualMaterial();
auto imatindex = item->getActualMaterialIndex();
auto item_mat = DFHack::MaterialInfo(imattype, imatindex);
auto item_mat = DFHack::MaterialInfo(imattype, imatindex, item->getType());
return (materials.size() == 0) ? matchesMask(item_mat) : matches(item_mat);
}