From e9b525b48aedc3c32f49a9109f517c76d1813bec Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 23 Mar 2015 21:05:30 +0100 Subject: [PATCH] fix global var --- mods/unified_inventory/register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unified_inventory/register.lua b/mods/unified_inventory/register.lua index 5ed24bf0..f6054d4c 100755 --- a/mods/unified_inventory/register.lua +++ b/mods/unified_inventory/register.lua @@ -323,7 +323,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local craft_index = ((y - 1) * 3) + x local craft_item = craft_list[craft_index] if (not craft_item) or (craft_item:is_empty()) or (craft_item:get_name() == needed_item) then - itemname = craft_item and craft_item:get_name() or needed_item + local itemname = craft_item and craft_item:get_name() or needed_item local needed_stack = ItemStack(needed_item) if player_inv:contains_item("main", needed_stack) then local count = (craft_item and craft_item:get_count() or 0) + 1