Add tests for packet decode/encode (and fix some bugs found by the tests!)
This commit is contained in:
2
dist/classes/messages/ScriptDataReply.js
vendored
2
dist/classes/messages/ScriptDataReply.js
vendored
@@ -10,7 +10,7 @@ class ScriptDataReplyMessage {
|
||||
this.id = Message_1.Message.ScriptDataReply;
|
||||
}
|
||||
getSize() {
|
||||
return ((this.calculateVarVarSize(this.DataBlock, 'Reply', 2) + 8) * this.DataBlock.length) + 1;
|
||||
return this.calculateVarVarSize(this.DataBlock, 'Reply', 2) + ((8) * this.DataBlock.length) + 1;
|
||||
}
|
||||
calculateVarVarSize(block, paramName, extraPerVar) {
|
||||
let size = 0;
|
||||
|
||||
Reference in New Issue
Block a user