Bugfixes: rename luxoff to luxore, remove 'local's from nobj_s in on-generated function

master
paramat 2015-01-08 12:56:41 +00:00
parent f29752698b
commit daf14432be
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
levels 0.2.5 by paramat
levels 0.2.6 by paramat
For Minetest 0.4.11 stable or later
Depends default
Licenses: Code WTFPL
Licenses: Code WTFPL. Textures CC-BY-SA

View File

@ -1,6 +1,5 @@
-- 0.2.5
-- paramtype = "light" for light sources
-- "nolight" replaces set_lighting
-- levels 0.2.6
-- bugfixes: rename luxoff to luxore, remove 'local' from nobj_s
-- Parameters
@ -129,8 +128,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
local minpos3d = {x=x0, y=y0-16, z=z0}
local minpos2d = {x=x0, y=z0}
local 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_terrain = nobj_terrain or minetest.get_perlin_map(np_terrain, chulens3d)
nobj_spike = nobj_spike or minetest.get_perlin_map(np_spike, chulens2d)
local nvals_terrain = nobj_terrain:get3dMap_flat(minpos3d)
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_grass
or nodid == c_dirt
or nodid == c_luxoff then
or nodid == c_luxore then
stable[si] = STABLE
end
end