From 977489de043c5f8146a946a5d91721cbd1ff5a23 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 18 Dec 2020 17:33:02 +0100 Subject: [PATCH] Fixed efficiency drops --- mods/ENTITIES/mcl_item_entity/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index 641348132..337da7359 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -193,6 +193,12 @@ local check_can_drop = function(node_name, tool_capabilities) if toolgroupcaps[plus] then return true end + for e=1,5 do + local effplus = plus .. "_efficiency_" .. e + if toolgroupcaps[effplus] then + return true + end + end end end for b=1, #basegroups do @@ -204,6 +210,12 @@ local check_can_drop = function(node_name, tool_capabilities) if toolgroupcaps[plus] then return true end + for e=1,5 do + local effplus = plus .. "_efficiency_" .. e + if toolgroupcaps[effplus] then + return true + end + end end end end