um idk bro

This commit is contained in:
ChomeNS 2022-11-26 15:43:12 +07:00
parent 9e0ed07160
commit 57ccc0b3e1

View file

@ -47,8 +47,8 @@ function inject(bot, dcclient, config) {
z: core.start.z + relativePosition.z, z: core.start.z + relativePosition.z,
}; };
if (impulseMode) bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: 0, flags: 0}); if (impulseMode) bot.write('update_command_block', {location, command: '', mode: 0, flags: 0});
bot.write('update_command_block', {location, command: 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: 0b100});
} catch (e) { } catch (e) {
bot.console.error(e); bot.console.error(e);
} }