summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorJacobF <queatz@gmail.com>2011-09-01 17:16:55 -0400
committerPerttu Ahola <celeron55@gmail.com>2011-09-06 16:36:11 +0300
commitc68ea19e8dd54c497b0fd3f16f26d063318e8bf6 (patch)
treee62c483bb35e0b7c13f8c7f05267b1aab78e9aa9 /src/inventory.h
parent2d872ce3fab0887f97adb4d57fc043e08f44d276 (diff)
downloadminetest-c68ea19e8dd54c497b0fd3f16f26d063318e8bf6.tar.gz
minetest-c68ea19e8dd54c497b0fd3f16f26d063318e8bf6.tar.bz2
minetest-c68ea19e8dd54c497b0fd3f16f26d063318e8bf6.zip
Now SAOs will reflect changes to their temporary inventory object
Also, the temp item wasn't being deleted, might have been a memory leak. Now you will only eat 1 item off a stack
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index b19a365c8..44ba6a5ad 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -58,6 +58,8 @@ public:
#endif
// Shall return a text to show in the GUI
virtual std::string getText() { return ""; }
+ // Returns the string used for inventory
+ virtual std::string getItemString();
// Creates an object from the item, to be placed in the world.
virtual ServerActiveObject* createSAO(ServerEnvironment *env, u16 id, v3f pos);
// Gets amount of items that dropping one SAO will decrement