Differences From
Artifact [67a7c4791a]:
518 518 -----------
519 519 -- chips --
520 520 -----------
521 521
522 522 E.sw = {}
523 523 function E.sw.findSchematicFor(item)
524 524 local id = ItemStack(item):get_name()
525 - print(id)
526 525 local fm = minetest.registered_items[id]._starlit
527 526 if not (fm and fm.fab and fm.fab.reverseEngineer) then return nil end
528 527 local id = fm.fab.reverseEngineer.sw
529 528 return id, starlit.item.sw.db[id]
530 529 end
531 530
532 531 E.chip = { file = {} }