mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
fix readUUID (wrong use of Buffer.slice)
This commit is contained in:
parent
2c3e166ce8
commit
bff7feda75
@ -11,7 +11,7 @@ module.exports = {
|
|||||||
|
|
||||||
function readUUID(buffer, offset) {
|
function readUUID(buffer, offset) {
|
||||||
return {
|
return {
|
||||||
value: UUID.stringify(buffer.slice(offset,16)),
|
value: UUID.stringify(buffer.slice(offset,16+offset)),
|
||||||
size: 16
|
size: 16
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user