mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
Fix typo in option type
This commit is contained in:
parent
388879bd4b
commit
ee3b865daa
@ -44,7 +44,7 @@ function sizeOfSwitch(value, typeArgs, rootNode) {
|
||||
function readOption(buffer, offset, typeArgs, context) {
|
||||
var val = buffer.readUInt8(offset++);
|
||||
if (val !== 0) {
|
||||
var retVal = this.read(buffer, offset, typeArgs, context);
|
||||
var retval = this.read(buffer, offset, typeArgs, context);
|
||||
retval.size++;
|
||||
return retval;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user