hotbar scroll inverted

This commit is contained in:
MihailRis 2024-01-25 00:43:06 +03:00
parent 9332fa375c
commit 0beeaf93ef

View File

@ -356,7 +356,7 @@ void HudRenderer::update(bool visible) {
}
if (!inventoryOpen && Events::scroll) {
int slot = player->getChosenSlot();
slot = (slot + Events::scroll) % 10;
slot = (slot - Events::scroll) % 10;
if (slot < 0) {
slot += 10;
}