mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -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) {
|
function readOption(buffer, offset, typeArgs, context) {
|
||||||
var val = buffer.readUInt8(offset++);
|
var val = buffer.readUInt8(offset++);
|
||||||
if (val !== 0) {
|
if (val !== 0) {
|
||||||
var retVal = this.read(buffer, offset, typeArgs, context);
|
var retval = this.read(buffer, offset, typeArgs, context);
|
||||||
retval.size++;
|
retval.size++;
|
||||||
return retval;
|
return retval;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user