Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotbar not working client-side until after dying (Bug) #311

Open
RepeatGitHub opened this issue Jun 15, 2022 · 4 comments
Open

Hotbar not working client-side until after dying (Bug) #311

RepeatGitHub opened this issue Jun 15, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@RepeatGitHub
Copy link

I've been playing on Chrome, and noticed something odd; the hotbar is showing question marks, and I can't switch slots. It could be only because it's on Chrome browser, or just my potato computer, since I don't think too many others are encountering this bug.

@RepeatGitHub
Copy link
Author

Here's a screenshot of what it looks like.
Screenshot 2022-06-15 11 03 56 AM

@MilkCafeGo
Copy link

I encounter this too

@MilkCafeGo
Copy link

on a chromebook

@kf106
Copy link
Contributor

kf106 commented Aug 2, 2022

The reason for this is because hotbar.init is in a spawn block within hud.js:

link to relevant line

The index.js has a bot.once('spawn') which initializes hud. Perhaps this worked before because the spawn was caught again in time in hud. It isn't now, and the whole bot.on('spawn') in hud.js is only catching the second spawn. Hence the hotbar doesn't work the first time around, but once you die and spawn again, it does.

Moving hotbar.init() up to, say, line 250 just under chat.init() makes it work first spawn as well.

@rom1504 rom1504 added the bug Something isn't working label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants