mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Wieldhand: Specify which ItemStack to use (#8961)
Makes 'get_wield_item' to return the "main" ItemStack
This commit is contained in:
parent
47da640d77
commit
5fa614d97e
7 changed files with 37 additions and 41 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue