mirror of
https://github.com/adrido/darkage.git
synced 2025-01-09 09:20:19 +01:00
Fix undeclared global variable
This commit is contained in:
parent
54ce0c9276
commit
842968d9eb
19
mapgen.lua
19
mapgen.lua
@ -1,3 +1,14 @@
|
|||||||
|
|
||||||
|
-- Some local constants to use for mapgen
|
||||||
|
local c_air = minetest.CONTENT_AIR
|
||||||
|
local c_ignore = minetest.CONTENT_IGNORE
|
||||||
|
|
||||||
|
local c_stone = minetest.get_content_id("default:stone")
|
||||||
|
local c_water = minetest.get_content_id("default:water_source")
|
||||||
|
local c_sand = minetest.get_content_id("default:sand")
|
||||||
|
local c_dirt = minetest.get_content_id("default:dirt")
|
||||||
|
local c_lawn = minetest.get_content_id("default:dirt_with_grass")
|
||||||
|
|
||||||
--Makes a stratus of rocks
|
--Makes a stratus of rocks
|
||||||
--name of the rock to generate
|
--name of the rock to generate
|
||||||
--c_wherein id of node to replace, for example minetest.get_content_id("default:stone")
|
--c_wherein id of node to replace, for example minetest.get_content_id("default:stone")
|
||||||
@ -246,14 +257,6 @@ minetest.register_ore({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
local c_air = minetest.CONTENT_AIR
|
|
||||||
local c_ignore = minetest.CONTENT_IGNORE
|
|
||||||
|
|
||||||
local c_stone = minetest.get_content_id("default:stone")
|
|
||||||
local c_water = minetest.get_content_id("default:water_source")
|
|
||||||
local c_sand = minetest.get_content_id("default:sand")
|
|
||||||
local c_dirt = minetest.get_content_id("default:dirt")
|
|
||||||
local c_lawn = minetest.get_content_id("default:dirt_with_grass")
|
|
||||||
-- Generate strati
|
-- Generate strati
|
||||||
local dbuf --for mapgen
|
local dbuf --for mapgen
|
||||||
local function generate_strati(minp, maxp, seed)
|
local function generate_strati(minp, maxp, seed)
|
||||||
|
Loading…
Reference in New Issue
Block a user