From a24b79608b74574c683361c72d60717cfbfc22b4 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Tue, 15 Sep 2015 15:34:38 +0200 Subject: [PATCH] use minecraft-data version --- package.json | 2 +- src/version.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 33c5368..63e2f1b 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "babel-runtime": "^5.4.4", "buffer-equal": "0.0.0", "lodash.reduce": "^3.1.2", - "minecraft-data": "0.9.0", + "minecraft-data": "0.10.0", "node-uuid": "~1.4.1", "prismarine-nbt": "0.0.1", "readable-stream": "^1.1.0", diff --git a/src/version.js b/src/version.js index 7c8b165..ee795d9 100644 --- a/src/version.js +++ b/src/version.js @@ -1,5 +1,3 @@ -module.exports={ - version:47, - minecraftVersion:'1.8.1', - majorVersion:'1.8' -}; +var majorVersion='1.8'; +var mcData=require("minecraft-data")(majorVersion); +module.exports=mcData.version;