mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
hotbar scroll inverted
This commit is contained in:
parent
9332fa375c
commit
0beeaf93ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue