mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Cleanup: drop Server::hudGetHotbarItemcount()
Call directly accessible RemotePlayer::getHotbarItemcount() from server api
This commit is contained in:
@@ -1462,9 +1462,7 @@ int ObjectRef::l_hud_get_hotbar_itemcount(lua_State *L)
|
||||
if (player == NULL)
|
||||
return 0;
|
||||
|
||||
s32 hotbar_itemcount = getServer(L)->hudGetHotbarItemcount(player);
|
||||
|
||||
lua_pushnumber(L, hotbar_itemcount);
|
||||
lua_pushnumber(L, player->getHotbarItemcount());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user