mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +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)) {
|
if (Events::jpressed(keycode::NUM_0)) {
|
||||||
player->setChosenSlot(9);
|
player->setChosenSlot(9);
|
||||||
}
|
}
|
||||||
if (!inventoryOpen && Events::scroll) {
|
if (!pause && !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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue