Skip to content

Commit

Permalink
DOCS: state that get_wielded_item returns a copy of the item
Browse files Browse the repository at this point in the history
  • Loading branch information
Zughy committed Aug 6, 2023
1 parent d16d1a1 commit 4d9a676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/lua_api.md
Expand Up @@ -7457,7 +7457,7 @@ child will follow movement and rotation of that bone.
* `get_wield_list()`: returns the name of the inventory list the wielded item
is in.
* `get_wield_index()`: returns the wield list index of the wielded item (starting with 1)
* `get_wielded_item()`: returns the wielded item as an `ItemStack`
* `get_wielded_item()`: returns a copy of the wielded item as an `ItemStack`
* `set_wielded_item(item)`: replaces the wielded item, returns `true` if
successful.
* `get_armor_groups()`:
Expand Down

0 comments on commit 4d9a676

Please sign in to comment.