Remove sand solidification code
Minetest does this now
This commit is contained in:
parent
6fbd47cde6
commit
b0acd134ca
|
@ -64,8 +64,6 @@ local c_dirt_with_grass = minetest.get_content_id("mcl_core:dirt_with_grass")
|
|||
local c_dirt_with_grass_snow = minetest.get_content_id("mcl_core:dirt_with_grass_snow")
|
||||
local c_sand = minetest.get_content_id("mcl_core:sand")
|
||||
local c_sandstone = minetest.get_content_id("mcl_core:sandstone")
|
||||
local c_redsand = minetest.get_content_id("mcl_core:redsand")
|
||||
local c_redsandstone = minetest.get_content_id("mcl_core:redsandstone")
|
||||
local c_void = minetest.get_content_id("mcl_core:void")
|
||||
local c_lava = minetest.get_content_id("mcl_core:lava_source")
|
||||
local c_water = minetest.get_content_id("mcl_core:water_source")
|
||||
|
@ -1793,9 +1791,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
|
||||
-- Non-v6 mapgens:
|
||||
-- Clear snowy grass blocks without snow above to ensure consistency.
|
||||
-- Solidify floating sand to sandstone (both colors).
|
||||
else
|
||||
local nodes = minetest.find_nodes_in_area(minp, maxp, {"mcl_core:dirt_with_grass_snow", "mcl_core:sand", "mcl_core:redsand"})
|
||||
local nodes = minetest.find_nodes_in_area(minp, maxp, {"mcl_core:dirt_with_grass_snow"})
|
||||
for n=1, #nodes do
|
||||
local p_pos = area:index(nodes[n].x, nodes[n].y, nodes[n].z)
|
||||
local p_pos_above = area:index(nodes[n].x, nodes[n].y+1, nodes[n].z)
|
||||
|
@ -1803,14 +1800,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
if data[p_pos] == c_dirt_with_grass_snow and p_pos_above and data[p_pos_above] ~= c_top_snow and data[p_pos_above] ~= c_snow_block then
|
||||
data[p_pos] = c_dirt_with_grass
|
||||
lvm_used = true
|
||||
elseif p_pos_below and data[p_pos_below] == c_air or data[p_pos_below] == c_water then
|
||||
if data[p_pos] == c_sand then
|
||||
data[p_pos] = c_sandstone
|
||||
lvm_used = true
|
||||
elseif data[p_pos] == c_redsand then
|
||||
data[p_pos] = c_redsandstone
|
||||
lvm_used = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user