diff options
author | sfan5 <sfan5@live.de> | 2020-04-10 02:43:49 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2020-05-05 19:26:59 +0200 |
commit | c28fbd06a8bfafc9691a92c90f0cf10ec94cd314 (patch) | |
tree | 09c2dcd20ff76356bb58f055b6877f7d9d3915cd /src/mapgen/mg_biome.h | |
parent | 3c65d1acec27366d88fc3686d3f820175673e203 (diff) | |
download | minetest-c28fbd06a8bfafc9691a92c90f0cf10ec94cd314.tar.gz minetest-c28fbd06a8bfafc9691a92c90f0cf10ec94cd314.tar.bz2 minetest-c28fbd06a8bfafc9691a92c90f0cf10ec94cd314.zip |
Fix remaining issues with mapgen scriptapi
Diffstat (limited to 'src/mapgen/mg_biome.h')
-rw-r--r-- | src/mapgen/mg_biome.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapgen/mg_biome.h b/src/mapgen/mg_biome.h index 0a4471cc3..57f4aa20d 100644 --- a/src/mapgen/mg_biome.h +++ b/src/mapgen/mg_biome.h @@ -90,6 +90,7 @@ struct BiomeParams { s32 seed; }; +// WARNING: this class is not thread-safe class BiomeGen { public: virtual ~BiomeGen() = default; @@ -233,7 +234,8 @@ public: NoiseParams &np_heat_blend, u64 seed) const; float getHumidityAtPosOriginal(v3s16 pos, NoiseParams &np_humidity, NoiseParams &np_humidity_blend, u64 seed) const; - Biome *getBiomeFromNoiseOriginal(float heat, float humidity, v3s16 pos) const; + const Biome *getBiomeFromNoiseOriginal(float heat, float humidity, + v3s16 pos) const; private: BiomeManager() {}; |