Bugfixes: rename luxoff to luxore, remove 'local's from nobj_s in on-generated function
parent
f29752698b
commit
daf14432be
|
@ -1,4 +1,4 @@
|
||||||
levels 0.2.5 by paramat
|
levels 0.2.6 by paramat
|
||||||
For Minetest 0.4.11 stable or later
|
For Minetest 0.4.11 stable or later
|
||||||
Depends default
|
Depends default
|
||||||
Licenses: Code WTFPL
|
Licenses: Code WTFPL. Textures CC-BY-SA
|
||||||
|
|
11
init.lua
11
init.lua
|
@ -1,6 +1,5 @@
|
||||||
-- 0.2.5
|
-- levels 0.2.6
|
||||||
-- paramtype = "light" for light sources
|
-- bugfixes: rename luxoff to luxore, remove 'local' from nobj_s
|
||||||
-- "nolight" replaces set_lighting
|
|
||||||
|
|
||||||
-- Parameters
|
-- Parameters
|
||||||
|
|
||||||
|
@ -129,8 +128,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
local minpos3d = {x=x0, y=y0-16, z=z0}
|
local minpos3d = {x=x0, y=y0-16, z=z0}
|
||||||
local minpos2d = {x=x0, y=z0}
|
local minpos2d = {x=x0, y=z0}
|
||||||
|
|
||||||
local nobj_terrain = nobj_terrain or minetest.get_perlin_map(np_terrain, chulens3d)
|
nobj_terrain = nobj_terrain or minetest.get_perlin_map(np_terrain, chulens3d)
|
||||||
local nobj_spike = nobj_spike or minetest.get_perlin_map(np_spike, chulens2d)
|
nobj_spike = nobj_spike or minetest.get_perlin_map(np_spike, chulens2d)
|
||||||
|
|
||||||
local nvals_terrain = nobj_terrain:get3dMap_flat(minpos3d)
|
local nvals_terrain = nobj_terrain:get3dMap_flat(minpos3d)
|
||||||
local nvals_spike = nobj_spike:get2dMap_flat(minpos2d)
|
local nvals_spike = nobj_spike:get2dMap_flat(minpos2d)
|
||||||
|
@ -182,7 +181,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
or nodid == c_sand
|
or nodid == c_sand
|
||||||
or nodid == c_grass
|
or nodid == c_grass
|
||||||
or nodid == c_dirt
|
or nodid == c_dirt
|
||||||
or nodid == c_luxoff then
|
or nodid == c_luxore then
|
||||||
stable[si] = STABLE
|
stable[si] = STABLE
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue