mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Cleanup: drop Server::hudGetHotbarSelectedImage()
Call directly accessible RemotePlayer::getHotbarSelectedImage() from server api
This commit is contained in:
parent
4be46aeeb1
commit
c7656edaa5
3 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue