diff --git a/README.md b/README.md index 22939ae..62e938a 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ end ## Optional Dependencies - xdecor (adjusts conflicting recipe) +- item_drop (make sure fortune will execute before item_drop mod overrides `handle_node_drops`) ## License: diff --git a/api.lua b/api.lua index 8932f7d..7bae93f 100644 --- a/api.lua +++ b/api.lua @@ -309,9 +309,9 @@ end ---Find element v of t satisfying f(v) local function tableFind(t, f) for _, v in ipairs(t) do - if f(v) then - return v - end + if f(v) then + return v + end end return nil diff --git a/mod.conf b/mod.conf index 24bb8a3..a8c0b1f 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = x_enchanting description = Adds Enchanting Mechanics and API. depends = -optional_depends = xdecor +optional_depends = xdecor, item_drop supported_games = minetest_game min_minetest_version = 5.4