diff options
author | Ekdohibs <nathanael.courant@laposte.net> | 2017-03-22 03:25:16 +0100 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-04-06 21:27:29 -0700 |
commit | 08b680d58890ce896f5d57404adc84eb7b96fd79 (patch) | |
tree | aad96d77674cf963e4857d67c671e5169e348020 /src/content_sao.h | |
parent | bce0d458d8cda70c10d78ea9ec476474f0a6f01a (diff) | |
download | minetest-08b680d58890ce896f5d57404adc84eb7b96fd79.tar.gz minetest-08b680d58890ce896f5d57404adc84eb7b96fd79.tar.bz2 minetest-08b680d58890ce896f5d57404adc84eb7b96fd79.zip |
Fix problems when overriding the hand:
- If the hand can dig a node the item wielded can't, allow to dig it anyway.
- Fix the API callbacks from setting the hand instead of the wielded item.
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 1ccea0d78..918830266 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -254,6 +254,7 @@ public: InventoryLocation getInventoryLocation() const; std::string getWieldList() const; ItemStack getWieldedItem() const; + ItemStack getWieldedItemOrHand() const; bool setWieldedItem(const ItemStack &item); int getWieldIndex() const; void setWieldIndex(int i); |