Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Old Version
- for k, v in stocked_items.items():
- item_dic = gen_mec.return_proto_dic(k)
- name = item_dic.get('key')
- price = item_dic.get('price', 0)
- quantity = v
- # New Version
- for k, v in stocked_items.items():
- item_dic = utils.variable_from_module('world.items.item_prototypes', variable=k)
- name = item_dic.get('key')
- price = item_dic.get('price', 0)
- quantity = v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement