Skip to content

Commit

Permalink
Moved some AbstractThrusterBlock stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
blockninja124 committed Jan 14, 2025
1 parent 1aeca42 commit 2b06d1f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player

// If thrusters can be toggled
if (!VSCHConfig.THRUSTER_TOGGLE.get()) {
player.displayClientMessage(Component.translatable("vsch.error.thruster_modes_disabled").withStyle(ChatFormatting.RED), true);
player.displayClientMessage(Component.translatable("vsch.error.thruster_modes_disabled").withStyle(
ChatFormatting.RED
), true);
return InteractionResult.PASS;
}

Expand All @@ -124,7 +126,9 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player
// If a force handler exists (might not if we aren't on a VS ship)
if (ships == null) {
// Not on a ship
player.displayClientMessage(Component.translatable("vsch.error.thruster_not_on_ship").withStyle(ChatFormatting.RED), true);
player.displayClientMessage(Component.translatable("vsch.error.thruster_not_on_ship").withStyle(
ChatFormatting.RED
), true);
return InteractionResult.FAIL;
}

Expand Down

0 comments on commit 2b06d1f

Please sign in to comment.