| 383 | } |
| 384 | |
| 385 | ItemDescriptor MaterialDatabase::materialItemDrop(MaterialId materialId) const { |
| 386 | if (isRealMaterial(materialId)) { |
| 387 | auto matInfo = getMaterialInfo(materialId); |
| 388 | if (!matInfo->itemDrop.empty()) |
| 389 | return ItemDescriptor(matInfo->itemDrop, 1, JsonObject()); |
| 390 | } |
| 391 | |
| 392 | return {}; |
| 393 | } |
| 394 | |
| 395 | ItemDescriptor MaterialDatabase::modItemDrop(ModId modId) const { |
| 396 | if (isRealMod(modId)) { |
no test coverage detected