mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-29 17:45:22 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user