This commit is contained in:
shoopea 2020-01-26 17:08:10 +08:00
parent a40cb6d92f
commit 8ce47d626a

View File

@ -354,7 +354,7 @@ func loadObjItem() error {
setObjItemCraft(objItems[i].ObjID64, objItems[i].Craft.Command, objItems[i].Craft.Mana)
emptyObjItemCraftItem(objItems[i].ObjID64)
for k, o := range objItems[i].Craft.Items {
if id, ok := cacheObjItem[objItems[i].Code]; !ok {
if id, ok := cacheObjItem[o.Code]; !ok {
log.Printf("loadObjItem : %s : unknown item %s for recipe.\n", objItems[i].Code, o.Code)
} else {
log.Printf("loadObjItem : %s : adding %s (%d) to the recipe.\n", objItems[i].Code, o.Code, o.Quantity)