improve mouse lock and split up screen rendering into two canvas elements

This commit is contained in:
LabyStudio
2022-02-04 14:28:05 +01:00
parent a6f365225c
commit 039d799bed
5 changed files with 60 additions and 52 deletions
@@ -30,7 +30,7 @@ window.IngameOverlay = class extends Gui {
this.textureHotbar,
0, 22,
24, 24,
x + this.minecraft.inventory.selectedSlotIndex * 20, y - 1,
x + this.minecraft.inventory.selectedSlotIndex * 20 - 1, y - 1,
24, 24
)