From 5c1cb01936093fc7e57d4b6d7a170dff9a18cd7d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 27 Nov 2011 12:50:35 +0200 Subject: Make blocks to be loaded from disk when the active block area reaches them --- src/server.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server.h') 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; } -- cgit v1.2.3