Skip to content

Instantly share code, notes, and snippets.

@nsporillo
Created February 10, 2016 03:39
Show Gist options
  • Save nsporillo/429bddc88896cf147d24 to your computer and use it in GitHub Desktop.
Save nsporillo/429bddc88896cf147d24 to your computer and use it in GitHub Desktop.
Client chat exception
Successfully connected to ------.---:25565 // redacted ip
/Users/milkywayz/Github/node-minecraft-protocol/examples/client_chat/client_chat.js:157
if('color' in chatObj) parentState.color = chatObj['color'];
^
TypeError: Cannot use 'in' operator to search for 'color' in undefined
at parseChat (/Users/milkywayz/Github/node-minecraft-protocol/examples/client_chat/client_chat.js:157:19)
at /Users/milkywayz/Github/node-minecraft-protocol/examples/client_chat/client_chat.js:175:15
at Array.forEach (native)
at parseChat (/Users/milkywayz/Github/node-minecraft-protocol/examples/client_chat/client_chat.js:174:19)
at Client.myColor (/Users/milkywayz/Github/node-minecraft-protocol/examples/client_chat/client_chat.js:138:14)
at Client.emit (events.js:98:17)
at Parser.<anonymous> (/Users/milkywayz/node_modules/minecraft-protocol/dist/client.js:83:15)
at Parser.emit (events.js:95:17)
at readableAddChunk (/Users/milkywayz/node_modules/minecraft-protocol/node_modules/readable-stream/lib/_stream_readable.js:195:16)
at Parser.Readable.push (/Users/milkywayz/node_modules/minecraft-protocol/node_modules/readable-stream/lib/_stream_readable.js:162:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment