fixed crashing with crafting because of a typo in achievements

This commit is contained in:
kaadmy 2015-10-25 12:50:07 -07:00
parent ffddd28d8b
commit f167fd2851
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ local function on_craft(itemstack, player, craftgrid, craftinv)
if def.craftitem == itemstack:get_name() then
achievements.trigger_achievement(player, aname)
else
local group = string.match(def.placenode, "group:(.*)")
local group = string.match(def.craftitem, "group:(.*)")
if group and minetest.get_item_group(itemstack:get_name(), group) then
achievements.trigger_achievement(player, aname)