From 48bb2e96562d1af9d1b47ec577fd4fc86e6b37b1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 1 Aug 2016 17:05:02 +0100 Subject: Fix craft trigger not taking stack count into account --- triggers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'triggers.lua') diff --git a/triggers.lua b/triggers.lua index cf8dced..1a4e355 100644 --- a/triggers.lua +++ b/triggers.lua @@ -126,7 +126,7 @@ minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv end local data = awards.players[player:get_player_name()] - if not awards.increment_item_counter(data, "craft", itemstack:get_name()) then + if not awards.increment_item_counter(data, "craft", itemstack:get_name(), itemstack:get_count()) then return end -- cgit v1.2.3