This commit is contained in:
ChomeNS 2022-12-18 13:49:08 +07:00
parent 63ef5e4ff1
commit a153a0d4f7

View file

@ -37,7 +37,7 @@ function inject (bot, dcclient, config) {
}
if (impulseMode) bot.write('update_command_block', { location, command: '', mode: 0, flags: 0 })
bot.write('update_command_block', { location, command: String(command).substring(0, 32767), mode: impulseMode ? 2 : 1, flags: 0b100 })
bot.write('update_command_block', { location, command: String(command).substring(0, 32767), mode: impulseMode ? 2 : 1, flags: 0b101 })
} catch (e) {
bot.console.error(e)
}