Issue with generic ores #5 fixed

This commit is contained in:
Joachim Stolberg 2018-01-04 11:13:02 +01:00
parent c8fdc71695
commit b8166014ca

View File

@ -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