mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-07 03:40:27 -04:00
fix objectData writer
This commit is contained in:
parent
174481fc2a
commit
b335f201a8
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ EntityMetadataWriter.prototype.write = function(buffer, offset) {
|
|||
|
||||
function ObjectDataWriter(value) {
|
||||
this.value = value;
|
||||
this.size = value === 0 ? 4 : 10;
|
||||
this.size = value.intField === 0 ? 4 : 10;
|
||||
}
|
||||
|
||||
ObjectDataWriter.prototype.write = function(buffer, offset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue