From 09b491f39e2297c455c75ed5aa40aefa0880bfb6 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Fri, 19 Feb 2016 16:58:30 +0100 Subject: [PATCH 1/2] https://github.com/roblabla/ProtoDef/pull/50 : update to new numerical names --- test/packetTest.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/packetTest.js b/test/packetTest.js index 54a0cd3..8da573d 100644 --- a/test/packetTest.js +++ b/test/packetTest.js @@ -14,12 +14,12 @@ function evalCount(count, fields) { } var values = { - 'int': 123456, - 'short': -123, - 'ushort': 123, + 'i32': 123456, + 'i16': -123, + 'u16': 123, 'varint': 25992, - 'byte': -10, - 'ubyte': 8, + 'i8': -10, + 'u8': 8, 'string': "hi hi this is my client string", 'buffer': new Buffer(8), 'array': function(typeArgs, context) { @@ -49,8 +49,8 @@ var values = { }, 'count': 1, // TODO : might want to set this to a correct value 'bool': true, - 'double': 99999.2222, - 'float': -333.444, + 'f64': 99999.2222, + 'f32': -333.444, 'slot': { blockId: 5, itemCount: 56, From 25e2cdcf62e136909f78dca433a4bbaeb35f5662 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Fri, 19 Feb 2016 23:43:30 +0100 Subject: [PATCH 2/2] update long and packages --- package.json | 6 +++--- test/packetTest.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 73e6fa9..97bb842 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,9 @@ }, "dependencies": { "buffer-equal": "1.0.0", - "minecraft-data": "^0.20.4", - "prismarine-nbt": "0.2.0", - "protodef": "0.3.0", + "minecraft-data": "^1.0.2", + "prismarine-nbt": "0.2.1", + "protodef": "^1.0.0", "readable-stream": "^2.0.5", "ursa-purejs": "0.0.3", "uuid-1345": "^0.99.6", diff --git a/test/packetTest.js b/test/packetTest.js index 8da573d..8f3e0b7 100644 --- a/test/packetTest.js +++ b/test/packetTest.js @@ -104,7 +104,7 @@ var values = { test7: {type: "intArray", value: [12, 42]} } }, - 'long': [0, 1], + 'i64': [0, 1], 'entityMetadata': [ {key: 17, value: 0, type: 0} ],