From b8166014cae28398db3f690bfecd44c2a4d4bae0 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Thu, 4 Jan 2018 11:13:02 +0100 Subject: [PATCH] Issue with generic ores #5 fixed --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 0c81b20..37ec6ca 100644 --- a/init.lua +++ b/init.lua @@ -54,7 +54,8 @@ local function add_ores() for _,item in pairs(minetest.registered_ores) do if minetest.registered_nodes[item.ore] then local drop = minetest.registered_nodes[item.ore].drop - if type(drop) == "string" + if type(drop) == "string" + and drop ~= item.ore and item.ore_type == "scatter" and item.clust_scarcity ~= nil and item.clust_scarcity > 0 and item.clust_size ~= nil and item.clust_size > 0 then