From 57ccc0b3e1ff25dc599426a4a57d01190b5e6f75 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sat, 26 Nov 2022 15:43:12 +0700 Subject: [PATCH] um idk bro --- plugins/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/core.js b/plugins/core.js index a79ec2a..d5b32e9 100644 --- a/plugins/core.js +++ b/plugins/core.js @@ -47,8 +47,8 @@ function inject(bot, dcclient, config) { z: core.start.z + relativePosition.z, }; - if (impulseMode) bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: 0, flags: 0}); - bot.write('update_command_block', {location, command: command.substring(0, 32767), mode: impulseMode ? 2 : 1, flags: 0b100}); + 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}); } catch (e) { bot.console.error(e); }