mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Fixed efficiency drops
This commit is contained in:
parent
66eb5c35da
commit
977489de04
1 changed files with 12 additions and 0 deletions
|
@ -193,6 +193,12 @@ local check_can_drop = function(node_name, tool_capabilities)
|
||||||
if toolgroupcaps[plus] then
|
if toolgroupcaps[plus] then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
for e=1,5 do
|
||||||
|
local effplus = plus .. "_efficiency_" .. e
|
||||||
|
if toolgroupcaps[effplus] then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for b=1, #basegroups do
|
for b=1, #basegroups do
|
||||||
|
@ -204,6 +210,12 @@ local check_can_drop = function(node_name, tool_capabilities)
|
||||||
if toolgroupcaps[plus] then
|
if toolgroupcaps[plus] then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
for e=1,5 do
|
||||||
|
local effplus = plus .. "_efficiency_" .. e
|
||||||
|
if toolgroupcaps[effplus] then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue