diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-09-21 11:44:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-21 11:44:24 +0200 |
commit | 5fa614d97e13af64be490336392abe2a54fdcbc1 (patch) | |
tree | 32a0856d971d850081c1a7e748ab3f96a103ea19 /src/serverobject.h | |
parent | 47da640d7763ee1e00badb7476ac5afc4f864367 (diff) | |
download | minetest-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.h | 3 |
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) { |