reset the thing

This commit is contained in:
Chayapak 2023-08-15 19:28:48 +07:00
parent 7cf994a3eb
commit fe1b0e12af

View file

@ -124,14 +124,34 @@ public class CorePlugin extends PositionPlugin.Listener {
} }
private void forceRun (String command) { private void forceRun (String command) {
bot.session.send(new ServerboundSetCommandBlockPacket( if (kaboom) {
block, bot.session.send(new ServerboundSetCommandBlockPacket(
command, block,
kaboom ? CommandBlockMode.AUTO : CommandBlockMode.REDSTONE, command,
true, CommandBlockMode.AUTO,
false, true,
true false,
)); true
));
} else {
bot.session.send(new ServerboundSetCommandBlockPacket(
block,
"",
CommandBlockMode.REDSTONE,
false,
false,
false
));
bot.session.send(new ServerboundSetCommandBlockPacket(
block,
command,
CommandBlockMode.REDSTONE,
true,
false,
true
));
}
incrementBlock(); incrementBlock();
} }