Fix alignment in implicit client hotbar definition

Used when an older server doesn't send it.
This commit is contained in:
j-r 2024-09-14 12:09:56 +02:00 committed by GitHub
parent 38b4505ad7
commit a6219ab955
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -383,7 +383,7 @@ void Hud::drawLuaElements(const v3s16 &camera_offset)
elems.push_back(&minimap);
}
if (client->getProtoVersion() < 46 && player->hud_flags & HUD_FLAG_HOTBAR_VISIBLE) {
hotbar = {HUD_ELEM_HOTBAR, v2f(0.5, 1), "", v2f(), "", 0 , 0, 0, v2f(-0.5, -1),
hotbar = {HUD_ELEM_HOTBAR, v2f(0.5, 1), "", v2f(), "", 0 , 0, 0, v2f(0, -1),
v2f(0, -4), v3f(), v2s32(), 0, "", 0};
elems.push_back(&hotbar);
}