summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-10-10 20:48:58 +0200
committerGitHub <noreply@github.com>2018-10-10 20:48:58 +0200
commit0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3 (patch)
treed60c7186893663e2556d6d9efc46c14fd4520b0f /src/server.h
parentd6f2a1c4b8ab13cee92e2041b3410fe3548e88e6 (diff)
downloadminetest-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.h4
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; }