From cb8ce84ca296d9b91c083fe6c88d8ffec4d4ca3e Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sun, 12 Feb 2023 11:43:55 +0700 Subject: [PATCH] idk just put vec3 in the vm sandbox --- plugins/vm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/vm.js b/plugins/vm.js index 3bb2592..b523794 100644 --- a/plugins/vm.js +++ b/plugins/vm.js @@ -9,6 +9,7 @@ const cows = require('cowsay2/cows') const { VM } = require('vm2') const randomstring = require('randomstring') const mineflayer = require('mineflayer') +const Vec3 = require('vec3') function inject (bot) { const chatMessage = require('prismarine-chat')(bot.version) const mcData = require('minecraft-data')(bot.version) @@ -36,7 +37,8 @@ function inject (bot) { generateEaglerUsername, cowsay, cows, - mcData + mcData, + Vec3 } } bot.vm = new VM(bot.vmOptions)