diff --git a/plugins/core.js b/plugins/core.js index 777c161..8916ef1 100644 --- a/plugins/core.js +++ b/plugins/core.js @@ -6,6 +6,7 @@ const relativePosition = new Vec3(0, 0, 0) function inject (bot, dcclient, config) { const mcData = require('minecraft-data')(bot.version) + const impulseMode = !bot.options.kaboom const core = { start: new Vec3(null, null, null), end: new Vec3(null, null, null), @@ -30,8 +31,6 @@ function inject (bot, dcclient, config) { relativePosition.z = 0 } - const impulseMode = !bot.options.kaboom - const location = { x: core.start.x + relativePosition.x, y: core.start.y + relativePosition.y, @@ -67,7 +66,7 @@ function inject (bot, dcclient, config) { slot: 36, item: { present: true, - itemId: mcData.itemsByName.repeating_command_block.id, + itemId: impulseMode ? mcData.itemsByName.command_block.id : mcData.itemsByName.repeating_command_block.id, itemCount: 64, nbtData: nbt.comp({ BlockEntityTag: nbt.comp({