PrismarineJS / prismarine-web-client

Minecraft web client running in your browser
https://prismarinejs.github.io/prismarine-web-client/
MIT License
444 stars 144 forks source link

Large areas of land not rendering, unable to open inventory, hotbar rarely works #325

Open Derplord3264 opened 2 years ago

Derplord3264 commented 2 years ago

I can't open the inventory by pressing E, and MASSIVE areas of land are not rendering, making it unplayable. The hotbar rarely works, instead showing question marks in the slots. Help! unrendered chunks: image hotbar: image

K-L-R-3 commented 2 years ago

I can't open inventory or use the hot bar. I have question marks like you. Have you found a solution?

AwesomestCode commented 1 year ago

Can you please submit a console log?

Derplord3264 commented 1 year ago

Here is the console log. webclient.prismarine.js.org-1667406238965.log

kf106 commented 1 year ago

Inventory problem: 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.