mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -04:00
don't use buffer-more-ints. closes #11
This commit is contained in:
parent
e783b8a1b3
commit
d331532d0d
5
index.js
5
index.js
@ -11,8 +11,6 @@ var net = require('net')
|
||||
, toUcs2 = new Iconv('UTF-8', 'utf16be')
|
||||
, fromUcs2 = new Iconv('utf16be', 'UTF-8')
|
||||
|
||||
require('buffer-more-ints');
|
||||
|
||||
exports.createClient = createClient;
|
||||
|
||||
function createClient(options) {
|
||||
@ -532,9 +530,8 @@ function readDouble(buffer, offset) {
|
||||
|
||||
function readLong(buffer, offset) {
|
||||
if (offset + 8 > buffer.length) return null;
|
||||
var value = buffer.readInt64BE(offset);
|
||||
return {
|
||||
value: value,
|
||||
value: [buffer.readInt32BE(offset), buffer.readInt32BE(offset + 4)],
|
||||
size: 8,
|
||||
};
|
||||
}
|
||||
|
@ -32,7 +32,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"ursa": "~0.8.0",
|
||||
"buffer-more-ints": "~0.0.1",
|
||||
"superagent": "~0.10.0",
|
||||
"iconv": "~1.2.4",
|
||||
"batch": "~0.2.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user