You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed this plugin and after debugging my project I noticed that its implementation is always ignored in favor of the one in mineflayer.
Here's some code snippets:
My project's code:
var bot = mineflayer.createBot({
...
});
// Install the plugin - method override is done here
blockFinderPlugin(bot);
// Sample usage
bot.once('spawn', function() {
bot.findBlock(...) // the original findBlock is called instead of the plugin`s
});
The injection function blockFinderPlugin is successfully called and the override code also succeeds:
function findBlockSync(options) {
...
}
function findBlock(options, callback) {
...
}
bot.findBlock = findBlock;
bot.findBlockSync = findBlockSync;
Yet the original function is always called instead. I don't know if the issue belongs here or at themain repo, so apologies if this isn't meant for here.
Cheers
The text was updated successfully, but these errors were encountered:
Greetings,
I just installed this plugin and after debugging my project I noticed that its implementation is always ignored in favor of the one in mineflayer.
Here's some code snippets:
My project's code:
The injection function
blockFinderPlugin
is successfully called and the override code also succeeds:Yet the original function is always called instead. I don't know if the issue belongs here or at themain repo, so apologies if this isn't meant for here.
Cheers
The text was updated successfully, but these errors were encountered: