mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fixed hotbar scroll with pause
This commit is contained in:
parent
b7fbb8621a
commit
74483dd385
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue