Skip to content

Commit 848dd1e

Browse files
committed
Fixed alignment of write, so it's starting on the right
1 parent 9564d27 commit 848dd1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/tools/redstone/redstonetools/features/commands/BinaryBlockWriteFeature.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ protected Feedback execute(ServerCommandSource source) throws CommandSyntaxExcep
8383
return Feedback.invalidUsage("The selection is too small to write the number");
8484
}
8585

86+
bits = "0".repeat((int) spacingVector.length() * (int) boundingBox.getVolume() - bits.length()) + bits;
87+
8688
var stringIndex = 0;
8789
for (BlockVector3 point = pos1; boundingBox.contains(point); point = point.add(spacingVector)) {
8890
var pos = new BlockPos(point.getBlockX(), point.getBlockY(), point.getBlockZ());

0 commit comments

Comments
 (0)