LookAtMySuitBot/js/node_modules/mineflayer-tool/lib/index.js

18 lines
660 B
JavaScript
Raw Normal View History

2023-12-24 20:08:39 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tool = exports.plugin = void 0;
const Tool_1 = require("./Tool");
const mineflayer_pathfinder_1 = require("mineflayer-pathfinder");
function plugin(bot) {
// TODO Replace this with loadPlugin when redundancy protection is in
setTimeout(() => {
if (bot.pathfinder == null) {
bot.loadPlugin(mineflayer_pathfinder_1.pathfinder);
}
}, 0);
bot.tool = new Tool_1.Tool(bot);
}
exports.plugin = plugin;
var Tool_2 = require("./Tool");
Object.defineProperty(exports, "Tool", { enumerable: true, get: function () { return Tool_2.Tool; } });