diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-10-10 20:48:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 20:48:58 +0200 |
commit | 0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3 (patch) | |
tree | d60c7186893663e2556d6d9efc46c14fd4520b0f /src/server.h | |
parent | d6f2a1c4b8ab13cee92e2041b3410fe3548e88e6 (diff) | |
download | minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.tar.gz minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.tar.bz2 minetest-0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3.zip |
Add core.remove_detached_inventory (#7684)
Breaks backwards compatibility for good
Bump protocol version
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h index c2adbbc07..9643fe456 100644 --- a/src/server.h +++ b/src/server.h @@ -248,7 +248,9 @@ public: 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; } |