From 7613d9bfe6121f6b741f6b8196ee6d89ef95d1ae Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 10 Mar 2021 17:50:34 +0100 Subject: Update .wielded command to output the entire itemstring; add LocalPlayer:get_hotbar_size --- src/script/lua_api/l_localplayer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_localplayer.h') diff --git a/src/script/lua_api/l_localplayer.h b/src/script/lua_api/l_localplayer.h index 33e23d178..bb5a294ca 100644 --- a/src/script/lua_api/l_localplayer.h +++ b/src/script/lua_api/l_localplayer.h @@ -65,6 +65,9 @@ private: // get_wielded_item(self) static int l_get_wielded_item(lua_State *L); + // get_hotbar_size(self) + static int l_get_hotbar_size(lua_State *L); + static int l_is_attached(lua_State *L); static int l_is_touching_ground(lua_State *L); static int l_is_in_liquid(lua_State *L); -- cgit v1.2.3