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