mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
commit
70a38779a6
@ -1218,7 +1218,7 @@ function read(buffer, cursor, fieldInfo, rootNodes) {
|
|||||||
|
|
||||||
function write(value, buffer, offset, fieldInfo, rootNode) {
|
function write(value, buffer, offset, fieldInfo, rootNode) {
|
||||||
if (fieldInfo.condition && !fieldInfo.condition(rootNode)) {
|
if (fieldInfo.condition && !fieldInfo.condition(rootNode)) {
|
||||||
return null;
|
return offset;
|
||||||
}
|
}
|
||||||
var type = types[fieldInfo.type];
|
var type = types[fieldInfo.type];
|
||||||
if (!type) {
|
if (!type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user