fixed hotbar scroll with pause
This commit is contained in:
parent
b7fbb8621a
commit
74483dd385
@ -354,7 +354,7 @@ void HudRenderer::update(bool visible) {
|
||||
if (Events::jpressed(keycode::NUM_0)) {
|
||||
player->setChosenSlot(9);
|
||||
}
|
||||
if (!inventoryOpen && Events::scroll) {
|
||||
if (!pause && !inventoryOpen && Events::scroll) {
|
||||
int slot = player->getChosenSlot();
|
||||
slot = (slot - Events::scroll) % 10;
|
||||
if (slot < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user