summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-03-16 08:52:42 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2018-03-16 08:52:42 +0100
commit95ce5583a9e4a0f95a4d9b28e0faedccd73e2b9d (patch)
tree512adae4ad72d5e139b9b4bcc1b187d844f53a9a /src/serverenvironment.h
parent858c95630f799f23b06e845848faf241b7e010f0 (diff)
downloadminetest-95ce5583a9e4a0f95a4d9b28e0faedccd73e2b9d.tar.gz
minetest-95ce5583a9e4a0f95a4d9b28e0faedccd73e2b9d.tar.bz2
minetest-95ce5583a9e4a0f95a4d9b28e0faedccd73e2b9d.zip
ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index f4996cdc6..225f788d9 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -232,9 +232,6 @@ public:
*/
void saveMeta();
void loadMeta();
- // to be called instead of loadMeta if
- // env_meta.txt doesn't exist (e.g. new world)
- void loadDefaultMeta();
u32 addParticleSpawner(float exptime);
u32 addParticleSpawner(float exptime, u16 attached_id);
@@ -371,6 +368,11 @@ public:
const Settings &cmd_args);
private:
+ /**
+ * called if env_meta.txt doesn't exist (e.g. new world)
+ */
+ void loadDefaultMeta();
+
static PlayerDatabase *openPlayerDatabase(const std::string &name,
const std::string &savedir, const Settings &conf);
/*