minecraft-protocol
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -544,3 +544,3 @@ var assert = require('assert'); | ||
this.value = value; | ||
this.size = value === 0 ? 4 : 10; | ||
this.size = value.intField === 0 ? 4 : 10; | ||
} | ||
@@ -547,0 +547,0 @@ |
{ | ||
"name": "minecraft-protocol", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Parse and serialize minecraft packets, plus authentication and encryption.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -234,2 +234,6 @@ # minecraft protocol | ||
### 0.7.2 | ||
* fix objectData writer. This fixes sending an 0x17 packet. | ||
### 0.7.1 | ||
@@ -236,0 +240,0 @@ |
@@ -84,7 +84,10 @@ var mc = require('../') | ||
}, | ||
'entityMetadata': [{ | ||
type: 'int', | ||
key: 3, | ||
value: 100, | ||
}], | ||
'entityMetadata': [ | ||
{ key: 17, value: 0, type: 'int' }, | ||
{ key: 0, value: 0, type: 'byte' }, | ||
{ key: 16, value: 0, type: 'byte' }, | ||
{ key: 1, value: 300, type: 'short' }, | ||
{ key: 19, value: 0, type: 'int' }, | ||
{ key: 18, value: 1, type: 'int' }, | ||
], | ||
'objectData': { | ||
@@ -91,0 +94,0 @@ intField: 9, |
79846
2360
288