From c7656edaa57a951f2496d454a42cdf899459b572 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 8 Mar 2018 22:06:48 +0100 Subject: Cleanup: drop Server::hudGetHotbarSelectedImage() Call directly accessible RemotePlayer::getHotbarSelectedImage() from server api --- src/script/lua_api/l_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_object.cpp') diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 13b538f0c..03bd84d52 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -1519,7 +1519,7 @@ int ObjectRef::l_hud_get_hotbar_selected_image(lua_State *L) if (player == NULL) return 0; - const std::string &name = getServer(L)->hudGetHotbarSelectedImage(player); + const std::string &name = player->getHotbarSelectedImage(); lua_pushlstring(L, name.c_str(), name.size()); return 1; } -- cgit v1.2.3