hotbar scroll inverted
This commit is contained in:
@@ -356,7 +356,7 @@ void HudRenderer::update(bool visible) {
|
|||||||
}
|
}
|
||||||
if (!inventoryOpen && Events::scroll) {
|
if (!inventoryOpen && Events::scroll) {
|
||||||
int slot = player->getChosenSlot();
|
int slot = player->getChosenSlot();
|
||||||
slot = (slot + Events::scroll) % 10;
|
slot = (slot - Events::scroll) % 10;
|
||||||
if (slot < 0) {
|
if (slot < 0) {
|
||||||
slot += 10;
|
slot += 10;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user