mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
add additional assertion
This commit is contained in:
parent
314c7dd6e4
commit
dbb0a4ccbe
@ -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…
x
Reference in New Issue
Block a user