Closed KBenster closed 3 years ago
not possible to investigate, it's needed to have at least the server
It was connecting to 2b2t.org. Upon connection, you are put into a queue server that holds the player in spectator mode in an end dimension. There are no blocks, and should be no players in the world while in the queue server.
too random, reopen if you have more information
Versions
Node version: 8.10.0 Server: 1.12.2 paperspigot Mineflayer 3.5.2
Error
Running on an Ubuntu VPS, connecting to a server that has players initially in spectator mode. Connecting to the server returns the following error:
Current code
Only the code to create and connect the bot. No actions regarding inventory, movement, chat, or any other aspect of the game being used other than the initial connection to the server.
const bot = mineflayer.createBot({host: process.argv[2], port: parseInt(process.argv[3]), username: process.argv[4], password: process.argv[5]})
Expected behavior
The bot itself is simply meant to connect to the server. It seems to be trying to read an inventory when there is none (player is in spectator mode when connected).