refactor: ♻️ reorder plugin loading
Load in order of simplicity and dependance. TODO: Use `bot.waitForChunksToLoad`: Split plugins based on whether it requires blocks to be loaded or no.
This commit is contained in:
parent
68e60921b1
commit
94574a4296
|
@ -95,13 +95,13 @@ cfg.quiet = true
|
||||||
bot.once("spawn", () => {
|
bot.once("spawn", () => {
|
||||||
plugins = {
|
plugins = {
|
||||||
command: require('./plugins/command'),
|
command: require('./plugins/command'),
|
||||||
|
eater: require('./plugins/eater'),
|
||||||
|
inventory: require('./plugins/inventory'),
|
||||||
|
finder: require('./plugins/finder'),
|
||||||
sleeper: require('./plugins/sleeper'),
|
sleeper: require('./plugins/sleeper'),
|
||||||
armor: require('./plugins/armor'),
|
armor: require('./plugins/armor'),
|
||||||
mover: require('./plugins/mover'),
|
mover: require('./plugins/mover'),
|
||||||
guard: require('./plugins/guard'),
|
guard: require('./plugins/guard'),
|
||||||
inventory: require('./plugins/inventory'),
|
|
||||||
eater: require('./plugins/eater'),
|
|
||||||
finder: require('./plugins/finder'),
|
|
||||||
// miner: require('./plugins/miner.js'),
|
// miner: require('./plugins/miner.js'),
|
||||||
// statemachine: require('./plugins/statemachine'),
|
// statemachine: require('./plugins/statemachine'),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user