mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself
This commit is contained in:
parent
858c95630f
commit
95ce5583a9
3 changed files with 19 additions and 10 deletions
|
@ -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);
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue