From 4d9a67682d6fa1c4aec5a8ccdf0483f246009e2e Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:15:34 +0200 Subject: [PATCH] DOCS: state that get_wielded_item returns a copy of the item --- doc/lua_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index fbac222f2..356c28cc8 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -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()`: