Permalink
Browse files

Merge pull request #2 from zhuowei/master

Now works with Node 0.6.4
  • Loading branch information...
2 parents 6b024f0 + 40f6b80 commit c3f629e7260c3ea2ecb7a04520a87103db615982 @remixz committed Feb 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/minecraft.js
View
@@ -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 c3f629e

Please sign in to comment.