mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-04 02:14:07 -04:00
add additional assertion
This commit is contained in:
parent
314c7dd6e4
commit
dbb0a4ccbe
1 changed files with 1 additions and 0 deletions
|
@ -1163,6 +1163,7 @@ LongWriter.prototype.write = function(buffer, offset) {
|
|||
|
||||
function get(packetId, toServer) {
|
||||
var packetInfo = packets[packetId];
|
||||
assert.ok(packetInfo, "unrecognized packet id: " + packetId);
|
||||
return Array.isArray(packetInfo) ?
|
||||
packetInfo :
|
||||
toServer ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue