summaryrefslogtreecommitdiff
path: root/src/serverobject.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2019-09-21 11:44:24 +0200
committerGitHub <noreply@github.com>2019-09-21 11:44:24 +0200
commit5fa614d97e13af64be490336392abe2a54fdcbc1 (patch)
tree32a0856d971d850081c1a7e748ab3f96a103ea19 /src/serverobject.h
parent47da640d7763ee1e00badb7476ac5afc4f864367 (diff)
downloadminetest-5fa614d97e13af64be490336392abe2a54fdcbc1.tar.gz
minetest-5fa614d97e13af64be490336392abe2a54fdcbc1.tar.bz2
minetest-5fa614d97e13af64be490336392abe2a54fdcbc1.zip
Wieldhand: Specify which ItemStack to use (#8961)
Makes 'get_wield_item' to return the "main" ItemStack
Diffstat (limited to 'src/serverobject.h')
-rw-r--r--src/serverobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/serverobject.h b/src/serverobject.h
index c81abb972..5ab988571 100644
--- a/src/serverobject.h
+++ b/src/serverobject.h
@@ -180,7 +180,8 @@ public:
{ return ""; }
virtual u16 getWieldIndex() const
{ return 0; }
- virtual ItemStack getWieldedItem() const;
+ virtual ItemStack getWieldedItem(ItemStack *selected,
+ ItemStack *hand = nullptr) const;
virtual bool setWieldedItem(const ItemStack &item);
inline void attachParticleSpawner(u32 id)
{