disable ores for dyson sphere

master
BuckarooBanzay 2020-04-28 13:50:12 +02:00
parent 2a9f9d89d3
commit e4858c62f8
1 changed files with 0 additions and 6 deletions

View File

@ -34,7 +34,6 @@ planetoidgen.planettypes["dyson-sphere"] = function(planet, minp, maxp)
local shell_radius = planet.radius - 20
local enable_decorations = false
local enable_ores = false
for z=minp.z,maxp.z do
for x=minp.x,maxp.x do
@ -47,7 +46,6 @@ planetoidgen.planettypes["dyson-sphere"] = function(planet, minp, maxp)
if distance_to_center > shell_radius then
-- shell
data[i] = c_stone
enable_decorations = true
elseif distance_to_center > dirt_radius then
-- dirt
data[i] = c_dirt
@ -74,10 +72,6 @@ planetoidgen.planettypes["dyson-sphere"] = function(planet, minp, maxp)
minetest.generate_decorations(vm, minp, maxp)
end
if enable_ores then
minetest.generate_ores(vm, minp, maxp)
end
vm:set_data(data)
vm:set_lighting({day=15, night=0})