summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-27 12:50:35 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:55 +0200
commit5c1cb01936093fc7e57d4b6d7a170dff9a18cd7d (patch)
treec82cb6bb89eaa9dc86c903968cbf283726d30c79 /src/server.h
parentec4f58741bedc098048234aac32662e08479fba2 (diff)
downloadminetest-5c1cb01936093fc7e57d4b6d7a170dff9a18cd7d.tar.gz
minetest-5c1cb01936093fc7e57d4b6d7a170dff9a18cd7d.tar.bz2
minetest-5c1cb01936093fc7e57d4b6d7a170dff9a18cd7d.zip
Make blocks to be loaded from disk when the active block area reaches them
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index 7620f5341..673458882 100644
--- a/src/server.h
+++ b/src/server.h
@@ -366,7 +366,8 @@ private:
};
class Server : public con::PeerHandler, public MapEventReceiver,
- public InventoryManager, public IGameDef
+ public InventoryManager, public IGameDef,
+ public IBackgroundBlockEmerger
{
public:
/*
@@ -483,6 +484,8 @@ public:
// Envlock and conlock should be locked when calling this
void notifyPlayer(const char *name, const std::wstring msg);
void notifyPlayers(const std::wstring msg);
+
+ void queueBlockEmerge(v3s16 blockpos, bool allow_generate);
// Envlock and conlock should be locked when using Lua
lua_State *getLua(){ return m_lua; }