chain -> impulse

This commit is contained in:
Chipmunk 2023-02-17 14:43:05 -05:00
parent 0755e1b505
commit 27f2f14776

View file

@ -74,7 +74,7 @@ public class CommandCore extends SessionAdapter {
final Vector3i relEnd = relativeArea.end();
final String command = String.format(
"fill %s %s %s %s %s %s minecraft:chain_command_block",
"fill %s %s %s %s %s %s minecraft:command_block",
relStart.getX() + origin.getX(),
relStart.getY() + origin.getY(),
relStart.getZ() + origin.getZ(),
@ -139,7 +139,7 @@ public class CommandCore extends SessionAdapter {
final Vector3i currentBlock = currentBlockAbsolute();
// TODO: Support using repeating command blocks (on kaboom-like servers) (because less packets)
session.send(new ServerboundSetCommandBlockPacket(currentBlock, "", CommandBlockMode.SEQUENCE, false, false, false));
session.send(new ServerboundSetCommandBlockPacket(currentBlock, "", CommandBlockMode.REDSTONE, false, false, false));
session.send(new ServerboundSetCommandBlockPacket(currentBlock, command, CommandBlockMode.REDSTONE, false, false, true));
incrementCurrentBlock();