mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 13:53:43 +01:00
Fix duplicate recipes in resolve_aliases (?)
This commit is contained in:
parent
d7619cd778
commit
09e73745fb
5
init.lua
5
init.lua
@ -1550,9 +1550,8 @@ local function resolve_aliases(hash)
|
|||||||
local rcp_old = recipes_cache[oldname][i]
|
local rcp_old = recipes_cache[oldname][i]
|
||||||
|
|
||||||
for j = 1, #recipes_cache[newname] do
|
for j = 1, #recipes_cache[newname] do
|
||||||
local rcp_new = recipes_cache[newname][j]
|
local rcp_new = copy(recipes_cache[newname][j])
|
||||||
rcp_new.type = nil
|
rcp_new.output = oldname
|
||||||
rcp_new.method = nil
|
|
||||||
|
|
||||||
if table_eq(rcp_old, rcp_new) then
|
if table_eq(rcp_old, rcp_new) then
|
||||||
similar = true
|
similar = true
|
||||||
|
Loading…
Reference in New Issue
Block a user