Fix for ceiling icicles "floating"
This commit is contained in:
parent
bf647b692a
commit
9d2c0bd229
3
init.lua
3
init.lua
@ -196,8 +196,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
local ai = area:index(x,y+1,z) --above index
|
local ai = area:index(x,y+1,z) --above index
|
||||||
if data[ai] == c_stone and data[vi] == c_air then --ceiling
|
if data[ai] == c_stone and data[vi] == c_air then --ceiling
|
||||||
if math.random() < ICICHA and (biome == 4 or biome == 5) then
|
if math.random() < ICICHA and (biome == 4 or biome == 5) then
|
||||||
local bi = area:index(x,y-1,z)
|
data[vi] = c_icid
|
||||||
data[bi] = c_icid
|
|
||||||
end
|
end
|
||||||
if math.random() < WORMCHA then
|
if math.random() < WORMCHA then
|
||||||
data[vi] = c_worm
|
data[vi] = c_worm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user