diff --git a/lib/plugins/informer.js b/lib/plugins/informer.js index 292827a..8494966 100644 --- a/lib/plugins/informer.js +++ b/lib/plugins/informer.js @@ -16,7 +16,7 @@ let cfg = { } function isVec3(vec) { - return this.x && this.y && this.z + return vec?.length === 3 || vec.x && vec.y && vec.z } function block(entity = bot.entity, pos = entity?.position?.offset(0, -1, 0)) {