mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-13 18:34:54 -05:00
idk just put vec3 in the vm sandbox
This commit is contained in:
parent
56b4669b15
commit
cb8ce84ca2
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue