From f5cdb5b7aabff1bdeb299a038547c4acaae6e72b Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 28 Feb 2016 22:37:16 +0100 Subject: [PATCH] Remove an useless tostring() --- enchanting.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enchanting.lua b/enchanting.lua index 1ec88d5..1c4af45 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -164,7 +164,7 @@ for enchant in tooldef[2]:gmatch("[%w_]+") do local fleshy = original_damage_groups.fleshy local full_punch_interval = original_tool.tool_capabilities.full_punch_interval local max_drop_level = original_tool.tool_capabilities.max_drop_level - group = tostring(next(original_groupcaps)) + group = next(original_groupcaps) if enchant == "durable" then groupcaps[group].uses = math.ceil(original_groupcaps[group].uses * enchanting.uses)