From 4d6d4bc67dbb11d1d4b08aaae27ca519dc3a3a84 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sun, 5 Feb 2023 18:35:11 +0700 Subject: [PATCH] idk just a small thing --- plugins/vm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vm.js b/plugins/vm.js index e6f2172..3bb2592 100644 --- a/plugins/vm.js +++ b/plugins/vm.js @@ -12,7 +12,7 @@ const mineflayer = require('mineflayer') function inject (bot) { const chatMessage = require('prismarine-chat')(bot.version) const mcData = require('minecraft-data')(bot.version) - bot.vmoptions = { + bot.vmOptions = { timeout: 2000, sandbox: { run (cmd) { @@ -39,7 +39,7 @@ function inject (bot) { mcData } } - bot.vm = new VM(bot.vmoptions) + bot.vm = new VM(bot.vmOptions) }; module.exports = { inject }