Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelien30000 committed Sep 9, 2023
1 parent 53101b4 commit 14dc946
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public void onBrushInfo(
super.onBrushInfoCommand(snipe, Caption.of("voxelsniper.brush.pull.info"));
}

@CommandMethod("<pinch-bubble>")
@CommandMethod("<pinch> <bubble>")
public void onBrushPinchbubble(
final @NotNull Snipe snipe,
final @Argument("pinch") double pinch,
final @Argument("pinch") double bubble
final @Argument("bubble") double bubble
) {
this.pinch = 1 - pinch;
this.bubble = bubble;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void onBrush(
public void onBrushInfo(
final @NotNull Snipe snipe
) {
super.onBrushInfoCommand(snipe, Caption.of("oxelsniper.brush.ruler.info"));
super.onBrushInfoCommand(snipe, Caption.of("voxelsniper.brush.ruler.info"));
}

@CommandMethod("ruler")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,31 @@ private void scan(Snipe snipe, Direction blockFace) {
if (blockFace == Direction.NORTH) { // Scan south
for (int i = 1; i < this.depth + 1; i++) {
if (getBlockType(targetBlock.getX(), clampY(targetBlock.getY()), targetBlock.getZ() + i) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.not-found"));
} else if (blockFace == Direction.SOUTH) { // Scan north
for (int i = 1; i < this.depth + 1; i++) {
if (getBlockType(targetBlock.getX(), clampY(targetBlock.getY()), targetBlock.getZ() - i) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.not-found"));
} else if (blockFace == Direction.EAST) { // Scan west
for (int i = 1; i < this.depth + 1; i++) {
if (getBlockType(targetBlock.getX() - i, clampY(targetBlock.getY()), targetBlock.getZ()) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.not-found"));
} else if (blockFace == Direction.WEST) { // Scan east
for (int i = 1; i < this.depth + 1; i++) {
if (getBlockType(targetBlock.getX() + i, clampY(targetBlock.getY()), targetBlock.getZ()) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
Expand All @@ -132,7 +132,7 @@ private void scan(Snipe snipe, Direction blockFace) {
break;
}
if (getBlockType(targetBlock.getX(), clampY(targetBlock.getY() - i), targetBlock.getZ()) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
Expand All @@ -144,7 +144,7 @@ private void scan(Snipe snipe, Direction blockFace) {
break;
}
if (getBlockType(targetBlock.getX(), clampY(targetBlock.getY() + i), targetBlock.getZ()) == this.checkFor) {
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.fond", this.checkFor.getId(), i));
messenger.sendMessage(Caption.of("voxelsniper.brush.scanner.found", this.checkFor.getId(), i));
return;
}
}
Expand Down

0 comments on commit 14dc946

Please sign in to comment.