Skip to content

Commit

Permalink
Update to send keep_alive packet by name instead of 0x00
Browse files Browse the repository at this point in the history
Fixes '0 is not in mappings error' with voxel-clientmc, fixing as part
of voxel/voxel-clientmc#16
  • Loading branch information
deathcap committed Jan 18, 2016
1 parent 5dbde1d commit b9f60b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft-protocol-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function createClient(options) {
}

function onKeepAlive(packet) {
client.write(0x00, {
client.write('keep_alive', {
keepAliveId: packet.keepAliveId
});
}
Expand Down

0 comments on commit b9f60b8

Please sign in to comment.