Skip to content

Commit

Permalink
Re-enable v6 mapgen, but send a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
neinwhal committed Jan 6, 2022
1 parent 6042071 commit ec84ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion game.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = Lord of the Test
author = Minetest-LOTR Team
description = A subgame inspired by LOTR elements. Explore the world of Middle-Earth.
allowed_mapgens = v7, valleys, carpathian, v5, flat, fractal
allowed_mapgens = v5, v6, v7, flat, valleys, carpathian, fractal
6 changes: 3 additions & 3 deletions mods/default/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

local mapgen_name = minetest.get_mapgen_setting("mg_name")

local lott_v6 = minetest.settings:get_bool("lott_v6") or false

if mapgen_name == "singlenode" or (mapgen_name == "v6" and lott_v6 ~= true) then
if mapgen_name == "singlenode" then
minetest.set_mapgen_setting("mg_name", "v7", true)
elseif mapgen_name == "v6" then
minetest.log("warning", "[LOTT] v6 mapgen is not fully tested, use at own risk or use other mapgens!")
end

local flags = minetest.get_mapgen_setting("mgv7_spflags")
Expand Down

0 comments on commit ec84ae4

Please sign in to comment.