mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add 'player-spawn-radius' generator parameter
This commit is contained in:
parent
4271f537a3
commit
2600dd7ed9
5 changed files with 27 additions and 9 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "../ContentPack.hpp"
|
||||
|
||||
#include "io/io.hpp"
|
||||
#include "data/dv_util.hpp"
|
||||
#include "engine/EnginePaths.hpp"
|
||||
#include "logic/scripting/scripting.hpp"
|
||||
#include "util/stringutil.hpp"
|
||||
|
|
@ -217,6 +218,7 @@ void ContentLoader::loadGenerator(
|
|||
|
||||
map.at("sea-level").get(def.seaLevel);
|
||||
map.at("wide-structs-chunks-radius").get(def.wideStructsChunksRadius);
|
||||
map.at("player-spawn-radius").get(def.playerSpawnRadius);
|
||||
if (map.has("heightmap-inputs")) {
|
||||
for (const auto& element : map["heightmap-inputs"]) {
|
||||
int index = element.asInteger();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue