From f167fd28516286891bbe49284e0ea5b2d04d586d Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sun, 25 Oct 2015 12:50:07 -0700 Subject: [PATCH] fixed crashing with crafting because of a typo in achievements --- mods/achievements/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/achievements/init.lua b/mods/achievements/init.lua index 7587987..e078fea 100644 --- a/mods/achievements/init.lua +++ b/mods/achievements/init.lua @@ -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)