mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Make blocks to be loaded from disk when the active block area reaches them
This commit is contained in:
parent
ec4f58741b
commit
5c1cb01936
4 changed files with 31 additions and 5 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue