Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zadrog Pzvotrügen
minetest_game
Commits
f17d7911
Commit
f17d7911
authored
8 years ago
by
paramat
Browse files
Options
Downloads
Patches
Plain Diff
Default, flowers: Use 'get_mapgen_setting()'
parent
497e6f62
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mods/default/mapgen.lua
+3
-3
3 additions, 3 deletions
mods/default/mapgen.lua
mods/flowers/mapgen.lua
+3
-3
3 additions, 3 deletions
mods/flowers/mapgen.lua
with
6 additions
and
6 deletions
mods/default/mapgen.lua
+
3
−
3
View file @
f17d7911
...
...
@@ -1523,12 +1523,12 @@ end
-- Mods using singlenode mapgen can call these functions to enable
-- the use of minetest.generate_ores or minetest.generate_decorations
local
mg_
par
am
s
=
minetest
.
get_mapgen_
params
(
)
if
mg_
params
.
mg
name
==
"v6"
then
local
mg_
n
am
e
=
minetest
.
get_mapgen_
setting
(
"mg_name"
)
if
mg_name
==
"v6"
then
default
.
register_ores
()
default
.
register_mgv6_decorations
()
minetest
.
register_on_generated
(
default
.
generate_nyancats
)
elseif
mg_
params
.
mg
name
~=
"singlenode"
then
elseif
mg_name
~=
"singlenode"
then
default
.
register_biomes
()
default
.
register_ores
()
default
.
register_decorations
()
...
...
This diff is collapsed.
Click to expand it.
mods/flowers/mapgen.lua
+
3
−
3
View file @
f17d7911
...
...
@@ -165,9 +165,9 @@ end
-- Mods using singlenode mapgen can call these functions to enable
-- the use of minetest.generate_ores or minetest.generate_decorations
local
mg_
par
am
s
=
minetest
.
get_mapgen_
params
(
)
if
mg_
params
.
mg
name
==
"v6"
then
local
mg_
n
am
e
=
minetest
.
get_mapgen_
setting
(
"mg_name"
)
if
mg_name
==
"v6"
then
flowers
.
register_mgv6_decorations
()
elseif
mg_
params
.
mg
name
~=
"singlenode"
then
elseif
mg_name
~=
"singlenode"
then
flowers
.
register_decorations
()
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment