Add files via upload

master
AiTechEye 2020-09-24 22:08:09 +02:00 committed by GitHub
parent 2c91dbd89e
commit 6a862af312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 14 deletions

View File

@ -56,17 +56,5 @@ minetest.register_craft({
}
})
function chakram_drops(name)
local d=minetest.registered_nodes[name].drop
if d=="" or d==nil then return name end
if d.items then
if d.items[1].items and d.items[2] and d.items[2].items then
return d.items[math.random(1,2)].items[1]
end
if d.items[1].items then
return d.items[1].items[1]
end
return name
end
return d
end
return minetest.get_node_drops(name)[1] or "air"
end