Skip to content
Browse files

Works with Node 0.6.4 after changing the connect call

  • Loading branch information...
1 parent 6b024f0 commit 40f6b80118d28c9648ed4841ae2039f33fc4d6e1 @zhuowei zhuowei committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/minecraft.js
View
4 lib/minecraft.js
@@ -12,7 +12,7 @@ var Colors = require('./colors.json');
function Minecraft (host, port, callback) {
var self = this;
- this.connection = net.connect({port: port, host: host}, function () {
+ this.connection = net.connect(port, host, function () {
// When a new `Minecraft` is created, it connects to the port and host given, and preforms the callback, if it exists, once connected.
console.log('Connected to server!');
self.chat('Hello from Node.js! Commanding from ' + os.hostname());
@@ -172,4 +172,4 @@ Minecraft.prototype.eventsClear = function() {
};
// ## Exports
-module.exports = Minecraft;
+module.exports = Minecraft;

0 comments on commit 40f6b80

Please sign in to comment.
Something went wrong with that request. Please try again.