Skip to content

Commit d0e0fea

Browse files
committed
fix tab & minimum chunk dist & inventory player zindex
1 parent 4b55bd9 commit d0e0fea

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/scripts/EventHandler.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ class EventHandler {
4343
focus = i - 1
4444
}
4545
}
46-
if (z.code === 'Tab' && this.gameState === 'gameLock') {
47-
$('.tab_list').show()
46+
if (z.code === 'Tab') {
4847
z.preventDefault()
48+
if (this.gameState === 'gameLock') {
49+
$('.tab_list').show()
50+
}
4951
}
5052
if (z.code === 'KeyQ') {
5153
this.game.socket.emit('drop')

src/scripts/Setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function Setup (game) {
6767
.name('Wireframe')
6868
.listen()
6969
const chunkDist = gui
70-
.add(game.params, 'chunkdist', 0, 10, 1)
70+
.add(game.params, 'chunkdist', 2, 10, 1)
7171
.name('Render distance')
7272
.listen()
7373
chunkDist.onChange(function (val) {

src/styles/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body {
4646
height: 204px;
4747
top: calc(50% - 220px);
4848
left: calc(50% - 180px);
49-
z-index: 9999;
49+
z-index: 98;
5050
}
5151

5252
.cross {

0 commit comments

Comments
 (0)