mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -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) {
|
||||
return {
|
||||
value: UUID.stringify(buffer.slice(offset,16)),
|
||||
value: UUID.stringify(buffer.slice(offset,16+offset)),
|
||||
size: 16
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user