mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
fix objectData writer
This commit is contained in:
parent
174481fc2a
commit
b335f201a8
@ -541,7 +541,7 @@ EntityMetadataWriter.prototype.write = function(buffer, offset) {
|
|||||||
|
|
||||||
function ObjectDataWriter(value) {
|
function ObjectDataWriter(value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.size = value === 0 ? 4 : 10;
|
this.size = value.intField === 0 ? 4 : 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectDataWriter.prototype.write = function(buffer, offset) {
|
ObjectDataWriter.prototype.write = function(buffer, offset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user