From 0a5e77132ae8c495c50cfc58bbe4ce1bfcd377e3 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 10 Oct 2018 20:48:58 +0200 Subject: Add core.remove_detached_inventory (#7684) Breaks backwards compatibility for good Bump protocol version --- src/server.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/server.h') 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; } -- cgit v1.2.3