Add core.remove_detached_inventory (#7684)

Breaks backwards compatibility for good
Bump protocol version
This commit is contained in:
SmallJoker
2018-10-10 20:48:58 +02:00
committed by GitHub
parent d6f2a1c4b8
commit 0a5e77132a
8 changed files with 101 additions and 35 deletions

View File

@@ -248,7 +248,9 @@ class Server : public con::PeerHandler, public MapEventReceiver,
void deleteParticleSpawner(const std::string &playername, u32 id);
// Creates or resets inventory
Inventory* createDetachedInventory(const std::string &name, const std::string &player="");
Inventory *createDetachedInventory(const std::string &name,
const std::string &player = "");
bool removeDetachedInventory(const std::string &name);
// Envlock and conlock should be locked when using scriptapi
ServerScripting *getScriptIface(){ return m_script; }